mirror of
https://github.com/ruby/ruby.git
synced 2022-11-09 12:17:21 -05:00
vm_core.h: add missing cast
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@63968 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
parent
a70d5ff0ab
commit
59b3827325
1 changed files with 1 additions and 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 *)((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)
|
||||
|
|
Loading…
Add table
Reference in a new issue