From ffcf094714e5d1cc7367e20e774e1dc0a9ac853e Mon Sep 17 00:00:00 2001 From: Michael Forney Date: Mon, 22 Apr 2019 11:04:54 -0700 Subject: expr: Fix check of not enough arguments for function call --- expr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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(); -- cgit v1.2.3