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:
parent
ab1a804569
commit
58f7563dc6
1 changed files with 1 additions and 1 deletions
|
@ -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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue