aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--expr.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/expr.c b/expr.c
index 28dc68f..4cc45b4 100644
--- a/expr.c
+++ b/expr.c
@@ -461,7 +461,7 @@ postfixexpr(struct scope *s, struct expression *r)
break;
if (e->call.args)
expect(TCOMMA, "or ')' after function call argument");
- if (!p && !t->func.isvararg && t->func.isprototype)
+ if (!p && !t->func.isvararg && t->func.paraminfo)
error(&tok.loc, "too many arguments for function call");
*end = assignexpr(s);
if (!t->func.isprototype || (t->func.isvararg && !p))