diff options
author | Michael Forney <mforney@mforney.org> | 2019-04-22 11:04:54 -0700 |
---|---|---|
committer | Michael Forney <mforney@mforney.org> | 2019-04-22 11:04:54 -0700 |
commit | ffcf094714e5d1cc7367e20e774e1dc0a9ac853e (patch) | |
tree | 89574447a38d29a92d1f70948b0b4446291d51da /expr.c | |
parent | 9463599fdf38b50afcc68f568cf6ad682428ce74 (diff) |
expr: Fix check of not enough arguments for function call
Diffstat (limited to 'expr.c')
-rw-r--r-- | expr.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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(); |