diff --git a/src/gc.c b/src/gc.c index d5ec4f22..a69087f8 100644 --- a/src/gc.c +++ b/src/gc.c @@ -449,7 +449,7 @@ gc_sweep_phase(pic_state *pic) continue; for (p = bp + bp->s.size; p != bp->s.ptr; p += p->s.size) { if (! gc_is_marked(p)) { - p->s.ptr = f; + p->s.ptr = f; /* For dead objects we can safely reuse ptr field */ f = p; } gc_unmark(p);