mirror of
https://git.savannah.gnu.org/git/guile.git
synced 2025-06-10 05:50: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:
parent
0da0308b84
commit
9b1ac02a85
1 changed files with 2 additions and 1 deletions
|
@ -882,7 +882,8 @@ prepare_boot_closure_env_for_eval (SCM proc, unsigned int argc,
|
||||||
*out_body = BOOT_CLOSURE_BODY (proc);
|
*out_body = BOOT_CLOSURE_BODY (proc);
|
||||||
*inout_env = new_env;
|
*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;
|
SCM rest;
|
||||||
int i;
|
int i;
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue