We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 543f8dc commit 1055e04Copy full SHA for 1055e04
object.c
@@ -337,12 +337,10 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
337
return;
338
}
339
340
- shape_id_t dest_shape_id = src_shape_id;
341
shape_id_t initial_shape_id = RBASIC_SHAPE_ID(dest);
342
-
343
RUBY_ASSERT(RSHAPE_TYPE_P(initial_shape_id, SHAPE_ROOT));
344
345
- dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id);
+ shape_id_t dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id);
346
if (UNLIKELY(rb_shape_too_complex_p(dest_shape_id))) {
347
st_table *table = rb_st_init_numtable_with_size(src_num_ivs);
348
rb_obj_copy_ivs_to_hash_table(obj, table);
0 commit comments