diff options
author | Jean Boussier <[email protected]> | 2025-06-06 09:09:36 +0200 |
---|---|---|
committer | Jean Boussier <[email protected]> | 2025-06-06 11:43:51 +0200 |
commit | 3883c3897912ce8dfe9f2d55f4ee5c08040a8239 (patch) | |
tree | 5de3c5b774218b4cc253e6c6a3b3056963937cbb /shape.c | |
parent | 0cc41d3d39303e186e5037deba6910b15278f465 (diff) |
shape.c: Fix improperly named routine
Meant to be `transition_complex` not `transition_frozen`.
Diffstat (limited to 'shape.c')
-rw-r--r-- | shape.c | 6 |
1 files changed, 3 insertions, 3 deletions
@@ -703,7 +703,7 @@ remove_shape_recursive(rb_shape_t *shape, ID id, rb_shape_t **removed_shape) } static inline shape_id_t -transition_frozen(shape_id_t shape_id) +transition_complex(shape_id_t shape_id) { if (rb_shape_has_object_id(shape_id)) { 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) else if (removed_shape) { // We found the shape to remove, but couldn't create a new variation. // We must transition to TOO_COMPLEX. - return transition_frozen(original_shape_id); + return transition_complex(original_shape_id); } return original_shape_id; } @@ -750,7 +750,7 @@ rb_shape_transition_frozen(VALUE obj) shape_id_t rb_shape_transition_complex(VALUE obj) { - return transition_frozen(RBASIC_SHAPE_ID(obj)); + return transition_complex(RBASIC_SHAPE_ID(obj)); } shape_id_t |