mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename rb_shape_set_shape_id
in rb_obj_set_shape_id
This commit is contained in:
parent
ccf2b7c5b8
commit
925dec8d70
Notes:
git
2025-05-27 13:34:17 +00:00
5 changed files with 18 additions and 19 deletions
6
object.c
6
object.c
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue