diff options
author | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-15 11:42:15 +0000 |
---|---|---|
committer | ktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2018-07-15 11:42:15 +0000 |
commit | a343f6609e5accfd20c5a6c66df63d62d759520e (patch) | |
tree | 257af1a78c9e12d76825bdd52c9e4ca3fffbb849 /vm_core.h | |
parent | 62870d2c73883dba82fb7c2ec1999ed948e26efd (diff) | |
download | ruby-a343f6609e5accfd20c5a6c66df63d62d759520e.tar.gz |
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_core.h')
-rw-r--r-- | vm_core.h | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -1062,7 +1062,7 @@ typedef rb_control_frame_t * (FUNC_FASTCALL(*rb_insn_func_t))(rb_execution_context_t *, rb_control_frame_t *); #define VM_TAGGED_PTR_SET(p, tag) ((VALUE)(p) | (tag)) -#define VM_TAGGED_PTR_REF(v, mask) ((void *)((VALUE)(v) & ~mask)) +#define VM_TAGGED_PTR_REF(v, mask) ((void *)((v) & ~mask)) #define GC_GUARDED_PTR(p) VM_TAGGED_PTR_SET((p), 0x01) #define GC_GUARDED_PTR_REF(p) VM_TAGGED_PTR_REF((p), 0x03) |