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

ruby-changes:49429

From: shyouhei <ko1@a...>
Date: Tue, 2 Jan 2018 15:49:29 +0900 (JST)
Subject: [ruby-changes:49429] shyouhei:r61556 (trunk): enum value grater than int is a GCCism

shyouhei	2018-01-02 15:41:52 +0900 (Tue, 02 Jan 2018)

  New Revision: 61556

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

  Log:
    enum value grater than int is a GCCism

  Modified files:
    trunk/vm_core.h
Index: vm_core.h
===================================================================
--- vm_core.h	(revision 61555)
+++ vm_core.h	(revision 61556)
@@ -1018,7 +1018,7 @@ enum { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1018
      * X   : tag for GC marking (It seems as Fixnum)
      * EEE : 3 bits Env flags
      * FF..: 6 bits Frame flags
-     * MM..: 16 bits frame magic (to check frame corruption)
+     * MM..: 15 bits frame magic (to check frame corruption)
      */
 
     /* frame types */
@@ -1029,10 +1029,10 @@ enum { https://github.com/ruby/ruby/blob/trunk/vm_core.h#L1029
     VM_FRAME_MAGIC_CFUNC  = 0x55550001,
     VM_FRAME_MAGIC_IFUNC  = 0x66660001,
     VM_FRAME_MAGIC_EVAL   = 0x77770001,
-    VM_FRAME_MAGIC_RESCUE = 0x88880001,
-    VM_FRAME_MAGIC_DUMMY  = 0x99990001,
+    VM_FRAME_MAGIC_RESCUE = 0x78880001,
+    VM_FRAME_MAGIC_DUMMY  = 0x79990001,
 
-    VM_FRAME_MAGIC_MASK   = 0xffff0001,
+    VM_FRAME_MAGIC_MASK   = 0x7fff0001,
 
     /* frame flag */
     VM_FRAME_FLAG_PASSED    = 0x0010,

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

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