aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
authorMichael Forney <mforney@mforney.org>2019-04-22 11:04:54 -0700
committerMichael Forney <mforney@mforney.org>2019-04-22 11:04:54 -0700
commitffcf094714e5d1cc7367e20e774e1dc0a9ac853e (patch)
tree89574447a38d29a92d1f70948b0b4446291d51da /expr.c
parent9463599fdf38b50afcc68f568cf6ad682428ce74 (diff)
expr: Fix check of not enough arguments for function call
Diffstat (limited to 'expr.c')
-rw-r--r--expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index 5e712d3..da4dd2b 100644
--- a/expr.c
+++ b/expr.c
@@ -589,7 +589,7 @@ postfixexpr(struct scope *s, struct expr *r)
if (p)
p = p->next;
}
- if (!t->func.isprototype && p)
+ if (p && !t->func.isvararg && t->func.paraminfo)
error(&tok.loc, "not enough arguments for function call");
e = decay(e);
next();