Rename rb_shape_set_shape_id in rb_obj_set_shape_id

This commit is contained in:
Jean Boussier 2025-05-27 13:53:14 +02:00
parent ccf2b7c5b8
commit 925dec8d70
Notes: git 2025-05-27 13:34:17 +00:00
5 changed files with 18 additions and 19 deletions

View file

@ -362,7 +362,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
}
rb_shape_copy_fields(dest, dest_buf, dest_shape_id, obj, src_buf, src_shape_id);
rb_shape_set_shape_id(dest, dest_shape_id);
rb_obj_set_shape_id(dest, dest_shape_id);
}
static void
@ -500,7 +500,7 @@ rb_obj_clone_setup(VALUE obj, VALUE clone, VALUE kwfreeze)
rb_evict_ivars_to_hash(clone);
}
else {
rb_shape_set_shape_id(clone, next_shape_id);
rb_obj_set_shape_id(clone, next_shape_id);
}
}
break;
@ -524,7 +524,7 @@ rb_obj_clone_setup(VALUE obj, VALUE clone, VALUE kwfreeze)
rb_evict_ivars_to_hash(clone);
}
else {
rb_shape_set_shape_id(clone, next_shape_id);
rb_obj_set_shape_id(clone, next_shape_id);
}
break;
}