summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorAaron Patterson <tenderlove@ruby-lang.org>2022-11-18 13:58:13 -0800
committerAaron Patterson <tenderlove@ruby-lang.org>2022-11-18 13:58:13 -0800
commit2185f0ca772c1e8c318198b54e3a694b55945bbb (patch)
tree60c1f5fc339af568a899390081074ed310967a0f /object.c
parent9e067df76bda7384e8f3ddda2b348f3a742eb784 (diff)
downloadruby-2185f0ca772c1e8c318198b54e3a694b55945bbb.tar.gz
Update assertion
New T_OBJECT objects will have a T_OBJECT shape
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 e50430a4fb..eae5a43088 100644
--- a/object.c
+++ b/object.c
@@ -306,7 +306,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
rb_shape_t * initial_shape = rb_shape_get_shape(dest);
if (initial_shape->size_pool_index != src_shape->size_pool_index) {
- RUBY_ASSERT(initial_shape->parent_id == ROOT_SHAPE_ID || initial_shape->type == SHAPE_ROOT);
+ RUBY_ASSERT(initial_shape->type == SHAPE_T_OBJECT);
shape_to_set_on_dest = rb_shape_rebuild_shape(initial_shape, src_shape);
}