Skip to content

Commit

Permalink
Fix a warning
Browse files Browse the repository at this point in the history
```
../gc.c:2342:25: warning: array subscript is of type 'char' [-Wchar-subscripts]
    GC_ASSERT(size_pools[pool_id].slot_size == slot_size);
                        ^~~~~~~~
```
  • Loading branch information
znz committed Oct 28, 2021
1 parent b74bf8d commit da22e43
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gc.c
Expand Up @@ -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);

Expand Down

0 comments on commit da22e43

Please sign in to comment.