mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
* 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
This commit is contained in:
parent
59432db7f7
commit
4baf5c4da6
1 changed files with 2 additions and 2 deletions
|
@ -148,11 +148,11 @@ vm_stack_dump_raw(rb_thread_t *th, rb_control_frame_t *cfp)
|
||||||
|
|
||||||
fprintf(stderr, "-- stack frame ------------\n");
|
fprintf(stderr, "-- stack frame ------------\n");
|
||||||
for (p = st = th->stack; p < sp; p++) {
|
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;
|
t = (VALUE *)*p;
|
||||||
if (th->stack <= t && t < sp) {
|
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)
|
if (p == lfp)
|
||||||
|
|
Loading…
Reference in a new issue