summaryrefslogtreecommitdiff
path: root/blacklst.c
diff options
context:
space:
mode:
Diffstat (limited to 'blacklst.c')
-rw-r--r--blacklst.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/blacklst.c b/blacklst.c
index a6df6933..9fd00167 100644
--- a/blacklst.c
+++ b/blacklst.c
@@ -281,8 +281,7 @@ static word total_stack_black_listed(void)
for (i = 0; i < GC_n_heap_sects; i++) {
struct hblk * start = (struct hblk *) GC_heap_sects[i].hs_start;
- size_t len = (word) GC_heap_sects[i].hs_bytes;
- struct hblk * endp1 = start + len/HBLKSIZE;
+ struct hblk * endp1 = start + GC_heap_sects[i].hs_bytes/HBLKSIZE;
total += GC_number_stack_black_listed(start, endp1);
}