summaryrefslogtreecommitdiff
path: root/vm_core.h
diff options
context:
space:
mode:
authorktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-15 09:45:31 (GMT)
committerktsj <ktsj@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-07-15 09:45:31 (GMT)
commit59b3827325a93e2291946504db85b8e508bcff81 (patch)
tree7188be2858501aca73da05dbfd83ccedc3e1324f /vm_core.h
parenta70d5ff0aba89e889c7b63e80be2384306c33e83 (diff)
vm_core.h: add missing cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'vm_core.h')
-rw-r--r--vm_core.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_core.h b/vm_core.h
index 73ef51d..3ec0c10 100644
--- a/vm_core.h
+++ b/vm_core.h
@@ -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 *)((v) & ~mask))
+#define VM_TAGGED_PTR_REF(v, mask) ((void *)((VALUE)(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)