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

ruby-changes:46673

From: ko1 <ko1@a...>
Date: Fri, 19 May 2017 16:54:09 +0900 (JST)
Subject: [ruby-changes:46673] ko1:r58788 (trunk): specify unsigned (fix r58784).

ko1	2017-05-19 16:54:04 +0900 (Fri, 19 May 2017)

  New Revision: 58788

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

  Log:
    specify unsigned (fix r58784).
    
    * method.h (rb_method_definition_t#type): specify unsigned explicitly.
     Some compilers (includes VC) returns negative value.

  Modified files:
    trunk/method.h
Index: method.h
===================================================================
--- method.h	(revision 58787)
+++ method.h	(revision 58788)
@@ -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/

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