summaryrefslogtreecommitdiff
path: root/vm_dump.c
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
commit4baf5c4da61994e634ae66cdac25db1d2f1dcd8e (patch)
treecc24921b92a30da55a212aeb5621760b111147c5 /vm_dump.c
parent59432db7f7c5a4408dc413e476eeb48904b977ad (diff)
* 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
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c4
1 files 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)