diff options
author | Aaron Patterson <[email protected]> | 2022-11-18 13:58:13 -0800 |
---|---|---|
committer | Aaron Patterson <[email protected]> | 2022-11-18 13:58:13 -0800 |
commit | 2185f0ca772c1e8c318198b54e3a694b55945bbb (patch) | |
tree | 60c1f5fc339af568a899390081074ed310967a0f /object.c | |
parent | 9e067df76bda7384e8f3ddda2b348f3a742eb784 (diff) |
Update assertion
New T_OBJECT objects will have a T_OBJECT shape
Diffstat (limited to 'object.c')
-rw-r--r-- | object.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -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); } |