diff options
author | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:40 +0000 |
---|---|---|
committer | shyouhei <shyouhei@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-01-02 06:41:40 +0000 |
commit | b6a2d63eb3dbc31e110e8cb95e054dd71d49a611 (patch) | |
tree | da13a7abdee0e49b6b078b9b81b537550b8c4bed /vm_dump.c | |
parent | b4b0e8bd0be3f9e44f453bdc7b139cee9bc7e87a (diff) |
explicit cast to void* required for %p
These functions take variadic arguments so no automatic type
promotion is expected. You have to do it by hand.
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@61542 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r-- | vm_dump.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1083,7 +1083,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", th, (void *)th->thread_id); + fprintf(stderr, "th: %p, native_id: %p\n", (void *)th, (void *)th->thread_id); #endif rb_vmdebug_stack_dump_raw(th->ec, th->ec->cfp); } |