summaryrefslogtreecommitdiff
path: root/vm_dump.c
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-15 11:42:15 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-15 11:42:15 (GMT)
commita343f6609e5accfd20c5a6c66df63d62d759520e (patch)
tree257af1a78c9e12d76825bdd52c9e4ca3fffbb849 /vm_dump.c
parent62870d2c73883dba82fb7c2ec1999ed948e26efd (diff)
vm_core.h, vm_dump.c: fix cast
Revert r63968 and cast at caller side to prevent unintentional casting. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63972 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_dump.c')
-rw-r--r--vm_dump.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_dump.c b/vm_dump.c
index 31d08be..348582b 100644
--- a/vm_dump.c
+++ b/vm_dump.c
@@ -151,7 +151,7 @@ rb_vmdebug_stack_dump_raw(const rb_execution_context_t *ec, const rb_control_fra
t = (VALUE *)*p;
if (ec->vm_stack <= t && t < sp) {
- fprintf(stderr, " (= %ld)", (long)((VALUE *)GC_GUARDED_PTR_REF(t) - ec->vm_stack));
+ fprintf(stderr, " (= %ld)", (long)((VALUE *)GC_GUARDED_PTR_REF((VALUE)t) - ec->vm_stack));
}
if (p == ep)