diff options
-rw-r--r-- | eval.c | 5 | ||||
-rw-r--r-- | unwind.c | 3 |
2 files changed, 3 insertions, 5 deletions
@@ -678,8 +678,7 @@ static val get_param_syms(val params) val apply(val fun, val arglist, val ctx_form) { - args_decl(args, ARGS_MAX); - args_init_list(args, ARGS_MAX, arglist); + args_decl_list(args, ARGS_MIN, arglist); return generic_funcall(fun, args); } @@ -1003,7 +1002,7 @@ static val do_eval(val form, val env, val ctx_form, } else { val arglist = rest(form); cnum alen = if3(consp(arglist), c_num(length(arglist)), 0); - cnum argc = max(alen, ARGS_MAX); + cnum argc = max(alen, ARGS_MIN); val ret, lfe_save = last_form_evaled; args_decl(args, argc); @@ -425,8 +425,7 @@ val uw_throw(val sym, val args) if (uw_exception_subtype_p(sym, car(match))) break; if (match) { - args_decl(gf_args, ARGS_MAX); - args_init_list(gf_args, ARGS_MAX, cons(sym, args)); + args_decl_list(gf_args, ARGS_MIN, cons(sym, args)); --reentry_count; invoke_handler(ex, gf_args); ++reentry_count; |