summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-07 12:00:54 +0000
committerkazu <kazu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2018-08-07 12:00:54 +0000
commit2ce807e89553534864daaef3e2e1218473d80474 (patch)
tree12a2a91f3fb959dca098643be8793410a69e9c9b
parent325d378a1f320c6225bfa1d1598be710ddf45159 (diff)
Remove unnecessary assignment
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@64212 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-rw-r--r--vm_method.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index 7a06e39..8cf7cf7 100644
--- a/vm_method.c
+++ b/vm_method.c
@@ -721,7 +721,7 @@ search_method(VALUE klass, ID id, VALUE *defined_class_ptr)
{
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;
}