[前][次][番号順一覧][スレッド一覧]

ruby-changes:51756

From: ktsj <ko1@a...>
Date: Sun, 15 Jul 2018 18:45:36 +0900 (JST)
Subject: [ruby-changes:51756] ktsj:r63968 (trunk): vm_core.h: add missing cast

ktsj	2018-07-15 18:45:31 +0900 (Sun, 15 Jul 2018)

  New Revision: 63968

  https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=63968

  Log:
    vm_core.h: add missing cast

  Modified files:
    trunk/vm_core.h
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 63967)
+++ vm_core.h	(revision 63968)
@@ -1062,7 +1062,7 @@ typedef rb_control_frame_t * https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1062
   (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)

--
ML: ruby-changes@q...
Info: http://www.atdot.net/~ko1/quickml/

[前][次][番号順一覧][スレッド一覧]