summaryrefslogtreecommitdiff
path: root/variable.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-05-08 20:16:00 +0200
committerJean Boussier <[email protected]>2025-05-09 10:22:51 +0200
commit677d075c2901198aad2f17b7d9f07af021c5e974 (patch)
tree7b852d0dcb2bc6d98df23b661f1c7652262f318c /variable.c
parentf82523f14bf69f73a4660611a16a67a88a408eda (diff)
Refactor `rb_shape_transition_too_complex` to return an ID.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13283
Diffstat (limited to 'variable.c')
-rw-r--r--variable.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/variable.c b/variable.c
index a115ab87b4..a33af83cef 100644
--- a/variable.c
+++ b/variable.c
@@ -1511,7 +1511,7 @@ static void
obj_transition_too_complex(VALUE obj, st_table *table)
{
RUBY_ASSERT(!rb_shape_obj_too_complex(obj));
- shape_id_t shape_id = rb_shape_id(rb_shape_transition_shape_too_complex(obj));
+ shape_id_t shape_id = rb_shape_transition_complex(obj);
VALUE *old_fields = NULL;
@@ -1803,7 +1803,7 @@ generic_ivar_set_too_complex_table(VALUE obj, void *data)
if (!rb_gen_fields_tbl_get(obj, 0, &fields_tbl)) {
fields_tbl = xmalloc(sizeof(struct gen_fields_tbl));
#if !SHAPE_IN_BASIC_FLAGS
- fields_tbl->shape_id = rb_shape_id(rb_shape_transition_shape_too_complex(obj));
+ fields_tbl->shape_id = rb_shape_transition_complex(obj);
#endif
fields_tbl->as.complex.table = st_init_numtable_with_size(1);