[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Guile-commits] 09/12: Fix boot closure wrong-num-args error
From: |
Andy Wingo |
Subject: |
[Guile-commits] 09/12: Fix boot closure wrong-num-args error |
Date: |
Wed, 21 Oct 2015 13:13:32 +0000 |
wingo pushed a commit to branch master
in repository guile.
commit 9b1ac02a8584ee7ca73a8f5920d7b33c0487bfc0
Author: Andy Wingo <address@hidden>
Date: Wed Oct 21 10:48:15 2015 +0200
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.
---
libguile/eval.c | 3 ++-
1 files changed, 2 insertions(+), 1 deletions(-)
diff --git a/libguile/eval.c b/libguile/eval.c
index 09fa71d..6f27519 100644
--- a/libguile/eval.c
+++ b/libguile/eval.c
@@ -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;
- [Guile-commits] branch master updated (315adb6 -> f039604), Andy Wingo, 2015/10/22
- [Guile-commits] 11/12: Minor assembler cleanups, Andy Wingo, 2015/10/21
- [Guile-commits] 02/12: Fix prompt miscompilation, Andy Wingo, 2015/10/21
- [Guile-commits] 04/12: VM caches address of local 0 instead of FP, Andy Wingo, 2015/10/21
- [Guile-commits] 03/12: VM stack grows downward, Andy Wingo, 2015/10/21
- [Guile-commits] 12/12: Add stack size computation to disassembler, Andy Wingo, 2015/10/21
- [Guile-commits] 05/12: Remove sp from scm_vm_cont, Andy Wingo, 2015/10/21
- [Guile-commits] 08/12: Prepare for SP-addressed locals, Andy Wingo, 2015/10/21
- [Guile-commits] 09/12: Fix boot closure wrong-num-args error,
Andy Wingo <=
- [Guile-commits] 10/12: SP-relative local addressing, Andy Wingo, 2015/10/21
- [Guile-commits] 06/12: Rename union scm_vm_stack_element members, Andy Wingo, 2015/10/21
- [Guile-commits] 01/12: Minor VM documentation updates, Andy Wingo, 2015/10/22
- [Guile-commits] 07/12: Replace dynamic link on stack with previous frame size, Andy Wingo, 2015/10/22