summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJean Boussier <[email protected]>2025-06-07 14:44:13 +0200
committerJean Boussier <[email protected]>2025-06-07 18:30:44 +0200
commit6eb0cd8df703d0a2edf7b11eab3255295e58c888 (patch)
tree4d3e7e6a860a1ff5ca18b91a807bc5a7eb9236b7 /object.c
parent1c96aed6eea39a06a4b790ddc7a31a0b35a9330e (diff)
Get rid of SHAPE_T_OBJECT
Now that we have the `heap_index` in shape flags we no longer need `T_OBJECT` shapes.
Notes
Notes: Merged: https://github.com/ruby/ruby/pull/13556
Diffstat (limited to 'object.c')
-rw-r--r--object.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/object.c b/object.c
index 3de93c4f0e..fbd2f5d557 100644
--- a/object.c
+++ b/object.c
@@ -339,7 +339,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
shape_id_t dest_shape_id = src_shape_id;
shape_id_t initial_shape_id = RBASIC_SHAPE_ID(dest);
- RUBY_ASSERT(RSHAPE(initial_shape_id)->type == SHAPE_T_OBJECT);
+ RUBY_ASSERT(RSHAPE(initial_shape_id)->type == SHAPE_ROOT);
dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id);
if (UNLIKELY(rb_shape_too_complex_p(dest_shape_id))) {