aboutsummaryrefslogtreecommitdiff
path: root/expr.c
diff options
context:
space:
mode:
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();