diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-01 14:43:34 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-03-01 14:43:34 +0000 |
commit | 58f7563dc6d87cd9f38284dc15209b15f460f59c (patch) | |
tree | 44bed1d2cf7311e5e98b45242b26a0a5e50d6259 /vm_method.c | |
parent | ab1a804569237a32fb21bb482476a592919f8789 (diff) |
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
Diffstat (limited to 'vm_method.c')
-rw-r--r-- | vm_method.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c index e3c365dd42..bbe7bebaa9 100644 --- a/vm_method.c +++ b/vm_method.c @@ -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; } |