We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent bb218f9 commit fbe6e93Copy full SHA for fbe6e93
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_ivtbl = gen_ivtbl_resize(0, shape_to_set_on_dest->capacity);
2341
2342
VALUE *src_buf = obj_ivtbl->as.shape.ivptr;
0 commit comments