From 05ced37f450b1bc65df94166ab2a78824f646e15 Mon Sep 17 00:00:00 2001 From: Oscar Waddell Date: Sat, 26 Oct 2019 21:16:45 +0000 Subject: [PATCH] fix typo original commit: 243cd029bb19ce555dac4012e6e20c5673143b64 --- c/gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/c/gc.c b/c/gc.c index ec2ec5d4b1..1b54e206c2 100644 --- a/c/gc.c +++ b/c/gc.c @@ -1179,7 +1179,7 @@ void GCENTRY(ptr tc, IGEN mcg, IGEN tg) { si->next = chunk->unused_segs; chunk->unused_segs = si; #ifdef WIPECLEAN - memset((void *)build_ptr(seg,0), 0xc7, bytes_per_segment); + memset((void *)build_ptr(si->number,0), 0xc7, bytes_per_segment); #endif if ((chunk->nused_segs -= 1) == 0) { if (chunk->bytes != (minimum_segment_request + 1) * bytes_per_segment) {