diff options
author | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-11 17:54:38 -0400 |
---|---|---|
committer | Leo Tenenbaum <pommicket@gmail.com> | 2020-03-11 17:54:38 -0400 |
commit | 91b74e90fb1e3b59058a7dc7045795c32e53c5a5 (patch) | |
tree | 0c835420c65d16278facedac224b35b8c42de4b2 /eval.c | |
parent | fcc2801b3ffc5cbf0e93f88df1dc849b209fb664 (diff) |
passing varargs seemingly fully working
Diffstat (limited to 'eval.c')
-rw-r--r-- | eval.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1450,7 +1450,7 @@ static Status eval_expr(Evaluator *ev, Expression *e, Value *v) { bool multiple_idents = arr_len(p->idents) > 1; bool is_tuple = p->type.kind == TYPE_TUPLE; if (type_is_builtin(&p->type, BUILTIN_VARARGS)) { - Expression *args_end = arg + nargs; + Expression *args_end = e->call.arg_exprs + nargs; /* set varargs */ pval->varargs = NULL; for (; arg != args_end; ++arg) { |