cproc

Unnamed repository; edit this file 'description' to name the repository.
git clone git://git.nihaljere.xyz/cproc
Log | Files | Refs | Submodules | README | LICENSE

commit ffcf094714e5d1cc7367e20e774e1dc0a9ac853e
parent 9463599fdf38b50afcc68f568cf6ad682428ce74
Author: Michael Forney <mforney@mforney.org>
Date:   Mon, 22 Apr 2019 11:04:54 -0700

expr: Fix check of not enough arguments for function call

Diffstat:
Mexpr.c | 2+-
1 file changed, 1 insertion(+), 1 deletion(-)

diff --git 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();