We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent d518d44 commit f71c4c9Copy full SHA for f71c4c9
1 file changed
variable.c
@@ -2332,6 +2332,12 @@ rb_copy_generic_ivar(VALUE dest, VALUE obj)
2332
}
2333
2334
2335
+ if (!shape_to_set_on_dest->capacity) {
2336
+ rb_shape_set_shape(dest, shape_to_set_on_dest);
2337
+ FL_UNSET(dest, FL_EXIVAR);
2338
+ return;
2339
+ }
2340
+
2341
new_fields_tbl = gen_fields_tbl_resize(0, shape_to_set_on_dest->capacity);
2342
2343
VALUE *src_buf = obj_fields_tbl->as.shape.fields;
0 commit comments