summaryrefslogtreecommitdiff
path: root/gc.c
diff options
context:
space:
mode:
authorNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-25 00:01:30 +0900
committerNobuyoshi Nakada <nobu@ruby-lang.org>2022-07-25 09:18:36 +0900
commitb30b727c243ad009a7f8435b559b466418874140 (patch)
tree9e1b15c361a88725ef6947e74fddb206c7c90cb2 /gc.c
parent1c4aaa3e634d34630581d4c969078245d2beeb84 (diff)
Fix format specifier
`uintptr_t` is not always `unsigned long`, but can be casted to void pointer safely.
Diffstat (limited to 'gc.c')
-rw-r--r--gc.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gc.c b/gc.c
index 56e4480861..808b8e5399 100644
--- a/gc.c
+++ b/gc.c
@@ -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();