summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 15b16a9503..5c1ac81ab4 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -1095,7 +1095,7 @@ rb_vmdebug_stack_dump_all_threads(void)
ruby_fill_thread_id_string(th->thread_id, buf);
fprintf(stderr, "th: %p, native_id: %s\n", th, buf);
#else
- fprintf(stderr, "th: %p, native_id: %p\n", (void *)th, (void *)th->thread_id);
+ fprintf(stderr, "th: %p, native_id: %p\n", (void *)th, (void *)(uintptr_t)th->thread_id);
#endif
rb_vmdebug_stack_dump_raw(th->ec, th->ec->cfp);
}