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

Fix format specifier

`uintptr_t` is not always `unsigned long`, but can be casted to void
pointer safely.
This commit is contained in:
Nobuyoshi Nakada 2022-07-25 00:01:30 +09:00
parent 1c4aaa3e63
commit b30b727c24
No known key found for this signature in database
GPG key ID: 7CD2805BFA3770C6

2
gc.c
View file

@ -5279,7 +5279,7 @@ read_barrier_handler(uintptr_t original_address)
/* If the page_body is NULL, then mprotect cannot handle it and will crash
* with "Cannot allocate memory". */
if (page_body == NULL) {
rb_bug("read_barrier_handler: segmentation fault at 0x%lx", original_address);
rb_bug("read_barrier_handler: segmentation fault at %p", (void *)original_address);
}
RB_VM_LOCK_ENTER();