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