Skip to content

Commit ebd6f1e

Browse files
committed
rb_copy_generic_ivar correctly get the IV_HASH
1 parent bcd4d32 commit ebd6f1e

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

variable.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2305,7 +2305,7 @@ rb_copy_generic_ivar(VALUE dest, VALUE obj)
23052305

23062306
if (rb_shape_too_complex_p(src_shape)) {
23072307
// obj is TOO_COMPLEX so we can copy its iv_hash
2308-
st_table *table = st_copy(ROBJECT_FIELDS_HASH(obj));
2308+
st_table *table = st_copy(obj_fields_tbl->as.complex.table);
23092309
if (rb_shape_has_object_id(src_shape)) {
23102310
st_data_t id = (st_data_t)internal_object_id;
23112311
st_delete(table, &id, NULL);

0 commit comments

Comments
 (0)