From 6dbe24fe5641e5c86638ff5c5d9fe08ea31d196d Mon Sep 17 00:00:00 2001 From: Jean Boussier Date: Fri, 13 Jun 2025 15:49:17 +0200 Subject: Use the `shape_id` rather than `FL_EXIVAR` We still keep setting `FL_EXIVAR` so that `rb_shape_verify_consistency` can detect discrepancies. --- shape.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'shape.c') diff --git a/shape.c b/shape.c index 44f6cf7193..3e70589a6e 100644 --- a/shape.c +++ b/shape.c @@ -1267,10 +1267,10 @@ rb_shape_verify_consistency(VALUE obj, shape_id_t shape_id) } if (FL_TEST_RAW(obj, FL_EXIVAR)) { - RUBY_ASSERT(rb_obj_has_exivar(obj)); + RUBY_ASSERT(rb_obj_exivar_p(obj)); } else { - RUBY_ASSERT(!rb_obj_has_exivar(obj)); + RUBY_ASSERT(!rb_obj_exivar_p(obj)); } return true; -- cgit v1.2.3