summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-23 03:25:30 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2008-05-23 03:25:30 +0000
commitf08a31e411400af07382f9e201484f4ef07e5472 (patch)
treecc24921b92a30da55a212aeb5621760b111147c5
parent519a547448720fddcd732b85e40ce6f57438f7fe (diff)
downloadruby-f08a31e411400af07382f9e201484f4ef07e5472.tar.gz
ruby-f08a31e411400af07382f9e201484f4ef07e5472.tar.xz
ruby-f08a31e411400af07382f9e201484f4ef07e5472.zip
* vm_dump.c (vm_stack_dump_raw): suppress warnings.
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@16552 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm_dump.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/vm_dump.c b/vm_dump.c
index a0c6db575..f3b39ac08 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)