From 78c7eac033f320a5b05cfb7e636fe79df1e83ee7 Mon Sep 17 00:00:00 2001 From: Alex Shinn Date: Fri, 4 Nov 2011 14:38:22 +0900 Subject: [PATCH] SEXP_OP_CLOSURE_REF takes a non-sexp integer parameter, so we shouldn't adjust it when loading images --- gc.c | 15 ++++++++------- vm.c | 2 +- 2 files changed, 9 insertions(+), 8 deletions(-) diff --git a/gc.c b/gc.c index d7971668..ecd54a40 100644 --- a/gc.c +++ b/gc.c @@ -523,15 +523,17 @@ void sexp_offset_heap_pointers (sexp_heap heap, sexp_heap from_heap, sexp* types sexp_stack_top(sexp_context_stack(p)) = 0; sexp_context_saves(p) = NULL; sexp_context_heap(p) = heap; - } else if (sexp_bytecodep(p)) { + } else if (sexp_bytecodep(p) && off != 0) { for (i=0; i