diff options
author | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-09 02:57:29 +0000 |
---|---|---|
committer | nobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2016-10-09 02:57:29 +0000 |
commit | 8810e45c16f4f036c96be2b9b22da58c9b4327e3 (patch) | |
tree | 2743684b55509e57e39b6612b44c3f517150b1a6 | |
parent | 840e2e9fb9897f53f27135fc853f95512207ee9d (diff) | |
download | ruby-8810e45c16f4f036c96be2b9b22da58c9b4327e3.tar.gz |
vm_method.c: update assertion [ci skip]
* vm_method.c (prepare_callable_method_entry): update assertion
as defined_class may be T_MODULE not only I_ICLASS since r56213.
[Feature #12534]
git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@56380 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
-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 d5780bbe8f..93f65495fc 100644 --- a/vm_method.c +++ b/vm_method.c @@ -804,7 +804,7 @@ prepare_callable_method_entry(VALUE defined_class, ID id, const rb_method_entry_ const rb_callable_method_entry_t *cme; if (me && me->defined_class == 0) { - VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS)); + VM_ASSERT(RB_TYPE_P(defined_class, T_ICLASS) || RB_TYPE_P(defined_class, T_MODULE)); VM_ASSERT(me->defined_class == 0); if ((mtbl = RCLASS_CALLABLE_M_TBL(defined_class)) == NULL) { |