ruby-changes:51997
From: kazu <ko1@a...>
Date: Tue, 7 Aug 2018 21:01:01 +0900 (JST)
Subject: [ruby-changes:51997] kazu:r64212 (trunk): Remove unnecessary assignment
kazu 2018-08-07 21:00:54 +0900 (Tue, 07 Aug 2018) New Revision: 64212 https://svn.ruby-lang.org/cgi-bin/viewvc.cgi?view=revision&revision=64212 Log: Remove unnecessary assignment Modified files: trunk/vm_method.c Index: vm_method.c =================================================================== --- vm_method.c (revision 64211) +++ vm_method.c (revision 64212) @@ -721,7 +721,7 @@ search_method(VALUE klass, ID id, VALUE https://github.com/ruby/ruby/blob/trunk/vm_method.c#L721 { rb_method_entry_t *me; - for (me = 0; klass; klass = RCLASS_SUPER(klass)) { + for (; klass; klass = RCLASS_SUPER(klass)) { RB_DEBUG_COUNTER_INC(mc_search_super); if ((me = lookup_method_table(klass, id)) != 0) break; } -- ML: ruby-changes@q... Info: http://www.atdot.net/~ko1/quickml/