aboutsummaryrefslogtreecommitdiffstats
path: root/vm_insnhelper.c
diff options
context:
space:
mode:
authorPeter Zhu <peter@peterzhu.ca>2023-04-14 16:25:06 -0400
committerPeter Zhu <peter@peterzhu.ca>2023-04-16 11:06:31 -0400
commitad3d4e87d7e20c7e7ff2836567a44bb29368f3ec (patch)
tree12ccb4503d6dce6d5d355d8beeacd691e78f7033 /vm_insnhelper.c
parentfac814c2dc31afef272b45392a7389ef0bfa3a4f (diff)
downloadruby-ad3d4e87d7e20c7e7ff2836567a44bb29368f3ec.tar.gz
Move RCLASS_CLONED to rb_classext_struct
This commit moves RCLASS_CLONED from the flags to the rb_classext_struct. This frees the FL_USER1 bit.
Diffstat (limited to 'vm_insnhelper.c')
-rw-r--r--vm_insnhelper.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/vm_insnhelper.c b/vm_insnhelper.c
index e985e52077..f4894225d7 100644
--- a/vm_insnhelper.c
+++ b/vm_insnhelper.c
@@ -895,7 +895,7 @@ vm_get_const_key_cref(const VALUE *ep)
while (cref) {
if (FL_TEST(CREF_CLASS(cref), FL_SINGLETON) ||
- FL_TEST(CREF_CLASS(cref), RCLASS_CLONED)) {
+ RCLASS_EXT(CREF_CLASS(cref))->cloned) {
return key_cref;
}
cref = CREF_NEXT(cref);