add missing preprocessor if statement
This commit is contained in:
parent
79f5fa6277
commit
986afa2fc9
4
src/gc.c
4
src/gc.c
|
@ -28,7 +28,9 @@ init_heap_page(struct heap_page *heap)
|
||||||
|
|
||||||
heap->endp = freep + freep->s.size;
|
heap->endp = freep + freep->s.size;
|
||||||
|
|
||||||
|
#if GC_DEBUG
|
||||||
printf("base = %p\nbase->s.ptr = %p\n", base, base->s.ptr);
|
printf("base = %p\nbase->s.ptr = %p\n", base, base->s.ptr);
|
||||||
|
#endif
|
||||||
}
|
}
|
||||||
|
|
||||||
void *
|
void *
|
||||||
|
@ -257,7 +259,9 @@ gc_sweep_phase(pic_state *pic)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
base = pic->heap->base;
|
base = pic->heap->base;
|
||||||
|
#if GC_DEBUG
|
||||||
printf("base = %p\nbase->s.ptr = %p\n", base, base->s.ptr);
|
printf("base = %p\nbase->s.ptr = %p\n", base, base->s.ptr);
|
||||||
|
#endif
|
||||||
for (p = base->s.ptr; ; p = p->s.ptr) {
|
for (p = base->s.ptr; ; p = p->s.ptr) {
|
||||||
|
|
||||||
#if GC_DEBUG
|
#if GC_DEBUG
|
||||||
|
|
Loading…
Reference in New Issue