From da22e43ce07040c71bf7ea3aff75b86aae60e7e5 Mon Sep 17 00:00:00 2001 From: Kazuhiro NISHIYAMA Date: Thu, 28 Oct 2021 08:23:18 +0900 Subject: [PATCH] Fix a warning ``` ../gc.c:2342:25: warning: array subscript is of type 'char' [-Wchar-subscripts] GC_ASSERT(size_pools[pool_id].slot_size == slot_size); ^~~~~~~~ ``` --- gc.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/gc.c b/gc.c index bd3915fb47..b5d5df692b 100644 --- a/gc.c +++ b/gc.c @@ -2331,7 +2331,7 @@ rb_gc_obj_slot_size(VALUE obj) } static inline size_t -size_pool_slot_size(char pool_id) +size_pool_slot_size(unsigned char pool_id) { GC_ASSERT(pool_id < SIZE_POOL_COUNT);