mirror of
https://github.com/ruby/ruby.git
synced 2025-08-15 13:39:04 +02:00
Rename rb_shape_id_canonical_p
-> rb_shape_canonical_p
This commit is contained in:
parent
6c4ae85211
commit
326c120aa7
Notes:
git
2025-05-27 13:34:16 +00:00
3 changed files with 4 additions and 4 deletions
2
object.c
2
object.c
|
@ -339,7 +339,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
|
|||
shape_id_t dest_shape_id = src_shape_id;
|
||||
shape_id_t initial_shape_id = RBASIC_SHAPE_ID(dest);
|
||||
|
||||
if (RSHAPE(initial_shape_id)->heap_index != RSHAPE(src_shape_id)->heap_index || !rb_shape_id_canonical_p(src_shape_id)) {
|
||||
if (RSHAPE(initial_shape_id)->heap_index != RSHAPE(src_shape_id)->heap_index || !rb_shape_canonical_p(src_shape_id)) {
|
||||
RUBY_ASSERT(RSHAPE(initial_shape_id)->type == SHAPE_T_OBJECT);
|
||||
|
||||
dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue