1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

Fix a function name in an error message

This commit is contained in:
Kazuhiro NISHIYAMA 2021-11-26 10:17:28 +09:00 committed by Kazuhiro NISHIYAMA
parent 04951a1226
commit 29877d944e
Notes: git 2021-11-26 20:13:16 +09:00

2
gc.c
View file

@ -2433,7 +2433,7 @@ size_pool_idx_for_size(size_t size)
/* size_pool_idx is ceil(log2(slot_count)) */
size_t size_pool_idx = 64 - nlz_int64(slot_count - 1);
if (size_pool_idx >= SIZE_POOL_COUNT) {
rb_bug("size_pool_for_size: allocation size too large");
rb_bug("size_pool_idx_for_size: allocation size too large");
}
return size_pool_idx;