From 4baf5c4da61994e634ae66cdac25db1d2f1dcd8e Mon Sep 17 00:00:00 2001 From: nobu Date: Fri, 23 May 2008 03:25:30 +0000 Subject: [PATCH] * vm_dump.c (vm_stack_dump_raw): suppress warnings. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@16552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e --- vm_dump.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/vm_dump.c b/vm_dump.c index a0c6db5759..f3b39ac08d 100644 --- a/vm_dump.c +++ b/vm_dump.c @@ -148,11 +148,11 @@ vm_stack_dump_raw(rb_thread_t *th, rb_control_frame_t *cfp) 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)