summaryrefslogtreecommitdiff
path: root/eval.c
diff options
context:
space:
mode:
authorLeo Tenenbaum <pommicket@gmail.com>2020-03-11 17:54:38 -0400
committerLeo Tenenbaum <pommicket@gmail.com>2020-03-11 17:54:38 -0400
commit91b74e90fb1e3b59058a7dc7045795c32e53c5a5 (patch)
tree0c835420c65d16278facedac224b35b8c42de4b2 /eval.c
parentfcc2801b3ffc5cbf0e93f88df1dc849b209fb664 (diff)
passing varargs seemingly fully working
Diffstat (limited to 'eval.c')
-rw-r--r--eval.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/eval.c b/eval.c
index d8b66a7..4a3e1a8 100644
--- a/eval.c
+++ b/eval.c
@@ -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) {