diff options
| author | Jean Boussier <jean.boussier@gmail.com> | 2025-06-13 15:49:17 +0200 |
|---|---|---|
| committer | Jean Boussier <jean.boussier@gmail.com> | 2025-06-13 23:50:30 +0200 |
| commit | 6dbe24fe5641e5c86638ff5c5d9fe08ea31d196d (patch) | |
| tree | bb982fdb111a536a47bfa4d9eb3bfa059e33ae2e /shape.c | |
| parent | b51078f82ee35d532dfd5b6981733f757d410d79 (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.c | 4 |
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)); + RUBY_ASSERT(rb_obj_exivar_p(obj)); } else { - RUBY_ASSERT(!rb_obj_has_exivar(obj)); + RUBY_ASSERT(!rb_obj_exivar_p(obj)); } return true; |
