mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename rb_shape_get_shape_by_id
-> RSHAPE
This commit is contained in:
parent
9966de11fb
commit
334ebba221
Notes:
git
2025-05-09 08:23:11 +00:00
14 changed files with 49 additions and 50 deletions
4
object.c
4
object.c
|
@ -388,12 +388,12 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
|
|||
while (src_shape->parent_id != INVALID_SHAPE_ID) {
|
||||
if (src_shape->type == SHAPE_IVAR) {
|
||||
while (dest_shape->edge_name != src_shape->edge_name) {
|
||||
dest_shape = rb_shape_get_shape_by_id(dest_shape->parent_id);
|
||||
dest_shape = RSHAPE(dest_shape->parent_id);
|
||||
}
|
||||
|
||||
RB_OBJ_WRITE(dest, &dest_buf[dest_shape->next_field_index - 1], src_buf[src_shape->next_field_index - 1]);
|
||||
}
|
||||
src_shape = rb_shape_get_shape_by_id(src_shape->parent_id);
|
||||
src_shape = RSHAPE(src_shape->parent_id);
|
||||
}
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue