summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2025-06-13 15:49:17 +0200
committerJean Boussier <jean.boussier@gmail.com>2025-06-13 23:50:30 +0200
commit6dbe24fe5641e5c86638ff5c5d9fe08ea31d196d (patch)
treebb982fdb111a536a47bfa4d9eb3bfa059e33ae2e /shape.c
parentb51078f82ee35d532dfd5b6981733f757d410d79 (diff)
Use the `shape_id` rather than `FL_EXIVAR`
We still keep setting `FL_EXIVAR` so that `rb_shape_verify_consistency` can detect discrepancies.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13612
Diffstat (limited to 'shape.c')
-rw-r--r--shape.c4
1 files changed, 2 insertions, 2 deletions
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;