Skip to content

Commit 3883c38

Browse files
committed
shape.c: Fix improperly named routine
Meant to be `transition_complex` not `transition_frozen`.
1 parent 0cc41d3 commit 3883c38

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

shape.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -703,7 +703,7 @@ remove_shape_recursive(rb_shape_t *shape, ID id, rb_shape_t **removed_shape)
703703
}
704704

705705
static inline shape_id_t
706-
transition_frozen(shape_id_t shape_id)
706+
transition_complex(shape_id_t shape_id)
707707
{
708708
if (rb_shape_has_object_id(shape_id)) {
709709
return ROOT_TOO_COMPLEX_WITH_OBJ_ID | (shape_id & SHAPE_ID_FLAGS_MASK);
@@ -733,7 +733,7 @@ rb_shape_transition_remove_ivar(VALUE obj, ID id, shape_id_t *removed_shape_id)
733733
else if (removed_shape) {
734734
// We found the shape to remove, but couldn't create a new variation.
735735
// We must transition to TOO_COMPLEX.
736-
return transition_frozen(original_shape_id);
736+
return transition_complex(original_shape_id);
737737
}
738738
return original_shape_id;
739739
}
@@ -750,7 +750,7 @@ rb_shape_transition_frozen(VALUE obj)
750750
shape_id_t
751751
rb_shape_transition_complex(VALUE obj)
752752
{
753-
return transition_frozen(RBASIC_SHAPE_ID(obj));
753+
return transition_complex(RBASIC_SHAPE_ID(obj));
754754
}
755755

756756
shape_id_t

0 commit comments

Comments
 (0)