1
0
Fork 0
mirror of https://github.com/ruby/ruby.git synced 2022-11-09 12:17:21 -05:00

vm_method.c: fix assertion

* vm_method.c (prepare_callable_method_entry): assert same
  condition only once for each case, not twice for module instance
  method.

git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@53977 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
This commit is contained in:
nobu 2016-03-01 14:43:34 +00:00
parent ab1a804569
commit 58f7563dc6

View file

@ -818,9 +818,9 @@ prepare_callable_method_entry(VALUE defined_class, ID id, const rb_method_entry_
}
else {
cme = (const rb_callable_method_entry_t *)me;
VM_ASSERT(callable_method_entry_p(cme));
}
VM_ASSERT(callable_method_entry_p(cme));
return cme;
}