summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-13 15:49:17 +0200
committerJean Boussier <[email protected]>2025-06-13 23:50:30 +0200
commit6dbe24fe5641e5c86638ff5c5d9fe08ea31d196d ()
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: Merged: https://.com/ruby/ruby/pull/13612
-rw-r--r--shape.c4
1 files changed, 2 insertions, 2 deletions
@@ -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));
}
else {
- RUBY_ASSERT(!rb_obj_has_exivar(obj));
}
return true;