summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-30 09:05:45 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-11-30 09:05:45 +0000
commit3005a9fb62e5adb523ef0d78845ba2c70e8db7dd (patch)
treeb4b57e167e03691150b5bb256be0227978adaf73
parent04ca48fc38f9d006e2711287f9576a606d0d269a (diff)
vm_dump.c: suppress warning
* vm_dump.c (rb_vmdebug_debug_print_pre): suppress warning on a platform ptrdiff_t is shorter than long int. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@43931 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index dd28780706..291d97accd 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -362,7 +362,7 @@ rb_vmdebug_debug_print_pre(rb_thread_t *th, rb_control_frame_t *cfp,VALUE *_pc)
printf(" ");
}
printf("| ");
- if(0)printf("[%03ld] ",cfp->sp - th->stack);
+ if(0)printf("[%03ld] ", (long)(cfp->sp - th->stack));
/* printf("%3"PRIdPTRDIFF" ", VM_CFP_CNT(th, cfp)); */
if (pc >= 0) {