summaryrefslogtreecommitdiff
path: root/vm_method.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-01 14:43:34 (GMT)
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2016-03-01 14:43:34 (GMT)
commit58f7563dc6d87cd9f38284dc15209b15f460f59c (patch)
tree44bed1d2cf7311e5e98b45242b26a0a5e50d6259 /vm_method.c
parentab1a804569237a32fb21bb482476a592919f8789 (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.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_method.c b/vm_method.c
index e3c365d..bbe7beb 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;
}