ruby-changes:46307
From: ko1 <ko1@a...>
Date: Fri, 21 Apr 2017 00:58:41 +0900 (JST)
Subject: [ruby-changes:46307] ko1:r58421 (trunk): * vm_dump.c (rb_vmdebug_stack_dump_all_threads): cast to `void*`.
ko1 2017-04-21 00:58:35 +0900 (Fri, 21 Apr 2017) New Revision: 58421 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=58421 Log: * vm_dump.c (rb_vmdebug_stack_dump_all_threads): cast to `void*`. Pointed out at <https://github.com/ruby/ruby/commit/fbc1deca89595e60af21e58b7e164f376e4bd2fc#commitcomment-21839826> Modified files: trunk/vm_dump.c Index: vm_dump.c =================================================================== --- vm_dump.c (revision 58420) +++ vm_dump.c (revision 58421) @@ -1054,7 +1054,7 @@ rb_vmdebug_stack_dump_all_threads(void) https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L1054 rb_thread_t *th = NULL; list_for_each(&vm->living_threads, th, vmlt_node) { - fprintf(stderr, "th: %p, native_id: %lx\n", th, (unsigned long)th->thread_id); + fprintf(stderr, "th: %p, native_id: %p\n", th, (void *)th->thread_id); rb_vmdebug_stack_dump_raw(th, th->cfp); } } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/