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

ruby-changes:47500

From: nobu <ko1@a...>
Date: Fri, 18 Aug 2017 08:31:48 +0900 (JST)
Subject: [ruby-changes:47500] nobu:r59616 (trunk): Revert r59612

nobu	2017-08-18 08:31:41 +0900 (Fri, 18 Aug 2017)

  New Revision: 59616

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

  Log:
    Revert r59612
    
    * method.h (rb_method_definition_t): rb_method_type_t should be
      unsigned as it needs 5bits at least for signed extension.

  Modified files:
    trunk/method.h
Index: method.h
===================================================================
--- method.h	(revision 59615)
+++ method.h	(revision 59616)
@@ -151,7 +151,7 @@ enum method_optimized_type { https://github.com/ruby/ruby/blob/trunk/method.h#L151
 };
 
 PACKED_STRUCT_UNALIGNED(struct rb_method_definition_struct {
-    rb_method_type_t type :  4; /* method type */
+    unsigned int type :  4; /* method type */
     int alias_count : 28;
     int complemented_count : 28;
 

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

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