diff options
author | Matt Valentine-House <matt@eightbitraptor.com> | 2021-01-26 16:49:57 +0000 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2021-02-01 08:42:54 -0800 |
commit | e0f999a2ed8b1b9298e51d5dfa902044709ce00a (patch) | |
tree | e5b4a93fd71bbb51b909686968d85951c33b4bb9 /vm_method.c | |
parent | 7341b0146557bccd783484b279569b530c888a14 (diff) |
Add RCLASS_SUBCLASSES Macro
Notes
Notes:
Merged: https://github.com/ruby/ruby/pull/4124
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 19852b0951..45285e0349 100644 --- a/vm_method.c +++ b/vm_method.c @@ -153,7 +153,7 @@ clear_method_cache_by_id_in_class(VALUE klass, ID mid) VM_ASSERT(RB_TYPE_P(klass, T_CLASS) || RB_TYPE_P(klass, T_ICLASS)); if (rb_objspace_garbage_object_p(klass)) return; - if (LIKELY(RCLASS_EXT(klass)->subclasses == NULL)) { + if (LIKELY(RCLASS_SUBCLASSES(klass) == NULL)) { // no subclasses // check only current class |