We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 3bd9583 commit 806e554Copy full SHA for 806e554
gc/default/default.c
@@ -9448,7 +9448,7 @@ rb_gc_impl_objspace_init(void *objspace_ptr)
9448
(bits_t)0x0101010101010101ULL, // i=3: every 8th bit
9449
(bits_t)0x0001000100010001ULL, // i=4: every 16th bit
9450
};
9451
- GC_ASSERT(i < sizeof(slot_bits_masks) / sizeof(slot_bits_masks[0]));
+ GC_ASSERT(HEAP_COUNT == sizeof(slot_bits_masks) / sizeof(slot_bits_masks[0]));
9452
heap->slot_bits_mask = slot_bits_masks[i];
9453
9454
ccan_list_head_init(&heap->pages);
0 commit comments