summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJohn Hawthorn <john@hawthorn.email>2025-11-27 00:49:28 -0800
committerJohn Hawthorn <john@hawthorn.email>2025-11-27 16:04:16 -0800
commit5e2e45fc242b79e844754691ad106c463ebb6251 (patch)
tree3fecb69f48a5e8d80b3583114daddf66a4fb1001
parent9929dc4440a76b57f362ad676a9b8b64c309a6d8 (diff)
Fix for modgc
-rw-r--r--gc/default/default.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc/default/default.c b/gc/default/default.c
index 7f568aaccc..530fc4df89 100644
--- a/gc/default/default.c
+++ b/gc/default/default.c
@@ -9448,7 +9448,7 @@ rb_gc_impl_objspace_init(void *objspace_ptr)
(bits_t)0x0101010101010101ULL, // i=3: every 8th bit
(bits_t)0x0001000100010001ULL, // i=4: every 16th bit
};
- GC_ASSERT(i < numberof(slot_bits_masks));
+ GC_ASSERT(i < sizeof(slot_bits_masks) / sizeof(slot_bits_masks[0]));
heap->slot_bits_mask = slot_bits_masks[i];
ccan_list_head_init(&heap->pages);