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

Fix assertion

callable_method_entry_p is for rb_callable_method_entry_t.
This commit is contained in:
Nobuyoshi Nakada 2019-09-30 17:43:11 +09:00
parent 771fd915a4
commit 10d6a3aca7
No known key found for this signature in database
GPG key ID: 4BC7D6DF58D8DF60

View file

@ -2576,7 +2576,7 @@ aliased_callable_method_entry0(const rb_method_entry_t *me)
const rb_callable_method_entry_t *cme;
if (orig_me->defined_class != 0) {
VM_ASSERT(callable_method_entry_p(orig_me));
VM_ASSERT(callable_class_p(orig_me->defined_class));
return orig_me;
}
else {