Skip to content

Commit

Permalink
Fix format specifiers for size_t
Browse files Browse the repository at this point in the history
  • Loading branch information
nobu committed Dec 4, 2023
1 parent 2e8a447 commit 9c5e1b7
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion gc.c
Expand Up @@ -2769,7 +2769,8 @@ size_pool_idx_for_size(size_t size)
size_t size_pool_idx = 64 - nlz_int64(slot_count - 1);

if (size_pool_idx >= SIZE_POOL_COUNT) {
rb_bug("size_pool_idx_for_size: allocation size too large (size=%lu, size_pool_idx=%lu)", size, size_pool_idx);
rb_bug("size_pool_idx_for_size: allocation size too large "
"(size=%"PRIuSIZE"u, size_pool_idx=%"PRIuSIZE"u)", size, size_pool_idx);
}

#if RGENGC_CHECK_MODE
Expand Down

0 comments on commit 9c5e1b7

Please sign in to comment.