ruby-changes:31852
From: nobu <ko1@a...>
Date: Sat, 30 Nov 2013 18:05:51 +0900 (JST)
Subject: [ruby-changes:31852] nobu:r43931 (trunk): vm_dump.c: suppress warning
nobu 2013-11-30 18:05:45 +0900 (Sat, 30 Nov 2013) New Revision: 43931 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=rev&revision=43931 Log: vm_dump.c: suppress warning * vm_dump.c (rb_vmdebug_debug_print_pre): suppress warning on a platform ptrdiff_t is shorter than long int. Modified files: trunk/vm_dump.c Index: vm_dump.c =================================================================== --- vm_dump.c (revision 43930) +++ vm_dump.c (revision 43931) @@ -362,7 +362,7 @@ rb_vmdebug_debug_print_pre(rb_thread_t * https://github.com/ruby/ruby/blob/trunk/vm_dump.c#L362 printf(" "); } printf("| "); - if(0)printf("[%03ld] ",cfp->sp - th->stack); + if(0)printf("[%03ld] ", (long)(cfp->sp - th->stack)); /* printf("%3"PRIdPTRDIFF" ", VM_CFP_CNT(th, cfp)); */ if (pc >= 0) { -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/