ruby-changes:5059
From: nobu <ko1@a...>
Date: Fri, 23 May 2008 12:25:42 +0900 (JST)
Subject: [ruby-changes:5059] Ruby:r16552 (trunk): * vm_dump.c (vm_stack_dump_raw): suppress warnings.
nobu 2008-05-23 12:25:30 +0900 (Fri, 23 May 2008) New Revision: 16552 Modified files: trunk/vm_dump.c Log: * vm_dump.c (vm_stack_dump_raw): suppress warnings. http://svn.ruby-lang.org/cgi-bin/viewvc.cgi/trunk/vm_dump.c?r1=16552&r2=16551&diff_format=u Index: vm_dump.c =================================================================== --- vm_dump.c (revision 16551) +++ vm_dump.c (revision 16552) @@ -148,11 +148,11 @@ fprintf(stderr, "-- stack frame ------------\n"); for (p = st = th->stack; p < sp; p++) { - fprintf(stderr, "%04ld (%p): %08lx", p - st, p, *p); + fprintf(stderr, "%04ld (%p): %08"PRIxVALUE, (long)(p - st), p, *p); t = (VALUE *)*p; if (th->stack <= t && t < sp) { - fprintf(stderr, " (= %ld)", (VALUE *)GC_GUARDED_PTR_REF(t) - th->stack); + fprintf(stderr, " (= %ld)", (long)((VALUE *)GC_GUARDED_PTR_REF(t) - th->stack)); } if (p == lfp) -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/