1
Fork 0
mirror of https://git.savannah.gnu.org/git/guile.git synced 2025-06-09 13:30:26 +02:00

Fix boot closure wrong-num-args error

* libguile/eval.c (prepare_boot_closure_env_for_eval): Fix issue if
  fixed closure is called with wrong number of arguments during
  bootstrap.
This commit is contained in:
Andy Wingo 2015-10-21 10:48:15 +02:00
parent 0da0308b84
commit 9b1ac02a85

View file

@ -882,7 +882,8 @@ prepare_boot_closure_env_for_eval (SCM proc, unsigned int argc,
*out_body = BOOT_CLOSURE_BODY (proc);
*inout_env = new_env;
}
else if (BOOT_CLOSURE_IS_REST (proc) && argc >= nreq)
else if (!BOOT_CLOSURE_IS_FIXED (proc) &&
BOOT_CLOSURE_IS_REST (proc) && argc >= nreq)
{
SCM rest;
int i;