ruby-changes:38708
From: nobu <ko1@a...>
Date: Sat, 6 Jun 2015 10:38:09 +0900 (JST)
Subject: [ruby-changes:38708] nobu:r50789 (trunk): class.c: suppress a warning
nobu 2015-06-06 10:37:50 +0900 (Sat, 06 Jun 2015) New Revision: 50789 http://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=50789 Log: class.c: suppress a warning * class.c (ins_methods_push): suppress a signed and unsigned comparison warning. Modified files: trunk/class.c Index: class.c =================================================================== --- class.c (revision 50788) +++ class.c (revision 50789) @@ -1075,7 +1075,7 @@ ins_methods_push(ID name, long type, VAL https://github.com/ruby/ruby/blob/trunk/class.c#L1075 case METHOD_VISI_PRIVATE: case METHOD_VISI_PROTECTED: case METHOD_VISI_PUBLIC: - visi = (type == visi); + visi = (type == (long)visi); break; default: visi = (type != METHOD_VISI_PRIVATE); -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/