зеркало из https://github.com/github/ruby.git
Fix format specifier
`uintptr_t` is not always `unsigned long`, but can be casted to void pointer safely.
This commit is contained in:
Родитель
1c4aaa3e63
Коммит
b30b727c24
2
gc.c
2
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
|
/* If the page_body is NULL, then mprotect cannot handle it and will crash
|
||||||
* with "Cannot allocate memory". */
|
* with "Cannot allocate memory". */
|
||||||
if (page_body == NULL) {
|
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();
|
RB_VM_LOCK_ENTER();
|
||||||
|
|
Загрузка…
Ссылка в новой задаче