1
0
Fork 0
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:
Kazuhiro NISHIYAMA 2021-10-28 08:23:18 +09:00
parent b74bf8dd88
commit da22e43ce0
No known key found for this signature in database
GPG key ID: 262ED8DBB4222F7A

2
gc.c
View file

@ -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);