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