From b4a69351ec7d6f0a5e34e3bb586053814be352c0 Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Wed, 6 Mar 2024 11:04:22 -0500 Subject: Move FL_SINGLETON to FL_USER1 This frees FL_USER0 on both T_MODULE and T_CLASS. Note: prior to this, FL_SINGLETON was never set on T_MODULE, so checking for `FL_SINGLETON` without first checking that `FL_TYPE` was `T_CLASS` was valid. That's no longer the case. --- ext/objspace/objspace_dump.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'ext/objspace/objspace_dump.c') diff --git a/ext/objspace/objspace_dump.c b/ext/objspace/objspace_dump.c index 866a49eff4..d05fe66037 100644 --- a/ext/objspace/objspace_dump.c +++ b/ext/objspace/objspace_dump.c @@ -560,7 +560,7 @@ dump_object(VALUE obj, struct dump_config *dc) } } - if (FL_TEST(obj, FL_SINGLETON)) { + if (RCLASS_SINGLETON_P(obj)) { dump_append(dc, ", \"singleton\":true"); } } -- cgit v1.2.3