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

ruby-changes:38693

From: ko1 <ko1@a...>
Date: Fri, 5 Jun 2015 01:17:59 +0900 (JST)
Subject: [ruby-changes:38693] ko1:r50774 (trunk): * vm_insnhelper.c (vm_defined): no need to use cast.

ko1	2015-06-05 01:17:53 +0900 (Fri, 05 Jun 2015)

  New Revision: 50774

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

  Log:
    * vm_insnhelper.c (vm_defined): no need to use cast.

  Modified files:
    trunk/ChangeLog
    trunk/vm_insnhelper.c
Index: ChangeLog
===================================================================
--- ChangeLog	(revision 50773)
+++ ChangeLog	(revision 50774)
@@ -1,3 +1,7 @@ https://github.com/ruby/ruby/blob/trunk/ChangeLog#L1
+Fri Jun  5 01:17:21 2015  Koichi Sasada  <ko1@a...>
+
+	* vm_insnhelper.c (vm_defined): no need to use cast.
+
 Fri Jun  5 01:14:02 2015  Koichi Sasada  <ko1@a...>
 
 	* vm_insnhelper.c (vm_defined): show additional messages on rb_bug().
Index: vm_insnhelper.c
===================================================================
--- vm_insnhelper.c	(revision 50773)
+++ vm_insnhelper.c	(revision 50774)
@@ -2468,7 +2468,7 @@ vm_defined(rb_thread_t *th, rb_control_f https://github.com/ruby/ruby/blob/trunk/vm_insnhelper.c#L2468
 	if (me) {
 	    const rb_method_definition_t *def = me->def;
 
-	    switch ((unsigned int)def->flags.visi) {
+	    switch (def->flags.visi) {
 	      case METHOD_VISI_PRIVATE:
 		break;
 	      case METHOD_VISI_PROTECTED:

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

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