Skip to content

Commit 3617c89

Browse files
committed
rb_copy_generic_ivar correctly get the IV_HASH
1 parent f71c4c9 commit 3617c89

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
@@ -2306,7 +2306,7 @@ rb_copy_generic_ivar(VALUE dest, VALUE obj)
23062306

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

0 commit comments

Comments
 (0)