mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
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); ^~~~~~~~ ```
This commit is contained in:
parent
b74bf8dd88
commit
da22e43ce0
1 changed files with 1 additions and 1 deletions
2
gc.c
2
gc.c
|
@ -2331,7 +2331,7 @@ rb_gc_obj_slot_size(VALUE obj)
|
||||||
}
|
}
|
||||||
|
|
||||||
static inline size_t
|
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);
|
GC_ASSERT(pool_id < SIZE_POOL_COUNT);
|
||||||
|
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue