summaryrefslogtreecommitdiff
path: root/object.c
diff options
context:
space:
mode:
authorJean Boussier <jean.boussier@gmail.com>2026-05-06 08:42:37 +0200
committerJean Boussier <jean.boussier@gmail.com>2026-05-06 10:10:16 +0200
commit4eeec614bb9379ebac78ecc4fa98238a8311d9eb (patch)
tree5be48ea6e8a2cf631490d993ffa0ef4702513b44 /object.c
parent678d86f5e46d57432169d0d5eaf71a41c6d21526 (diff)
shapes: Rename `TOO_COMPLEX` in just `COMPLEX`
The `too_` prefix wasn't consistently used and just make the thing longer for no benefit.
Diffstat (limited to 'object.c')
-rw-r--r--object.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/object.c b/object.c
index 10044c5133..4e98d9a5cc 100644
--- a/object.c
+++ b/object.c
@@ -338,7 +338,7 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
shape_id_t src_shape_id = RBASIC_SHAPE_ID(obj);
- if (rb_shape_too_complex_p(src_shape_id)) {
+ if (rb_shape_complex_p(src_shape_id)) {
rb_shape_copy_complex_ivars(dest, obj, src_shape_id, ROBJECT_FIELDS_HASH(obj));
return;
}
@@ -347,10 +347,10 @@ rb_obj_copy_ivar(VALUE dest, VALUE obj)
RUBY_ASSERT(RSHAPE_TYPE_P(initial_shape_id, SHAPE_ROOT));
shape_id_t dest_shape_id = rb_shape_rebuild(initial_shape_id, src_shape_id);
- if (UNLIKELY(rb_shape_too_complex_p(dest_shape_id))) {
+ if (UNLIKELY(rb_shape_complex_p(dest_shape_id))) {
st_table *table = rb_st_init_numtable_with_size(src_num_ivs);
rb_obj_copy_ivs_to_hash_table(obj, table);
- rb_obj_init_too_complex(dest, table);
+ rb_obj_init_complex(dest, table);
return;
}