summaryrefslogtreecommitdiff
path: root/shape.c
diff options
context:
space:
mode:
authorPeter Zhu <[email protected]>2022-11-17 14:43:46 -0500
committerPeter Zhu <[email protected]>2022-11-17 14:43:46 -0500
commit4b29eb17f2b01442198c81c5f62fcd3045aab659 ()
tree376d89b7b48663e728cb0862455071cba9a437a8 /shape.c
parent3f3a53919769bc3035d7837eb2f7890d7b675f86 (diff)
Fix indentation of switch statement in shape.c
-rw-r--r--shape.c28
1 files changed, 14 insertions, 14 deletions
@@ -341,21 +341,21 @@ rb_shape_rebuild_shape(rb_shape_t * initial_shape, rb_shape_t * dest_shape)
}
switch (dest_shape->type) {
- case SHAPE_IVAR:
- if (midway_shape->capacity <= midway_shape->next_iv_index) {
- // There isn't enough room to write this IV, so we need to increase the capacity
- midway_shape = rb_shape_transition_shape_capa(midway_shape, midway_shape->capacity * 2);
- }
- midway_shape = rb_shape_get_next_iv_shape(midway_shape, dest_shape->edge_name);
- break;
- case SHAPE_IVAR_UNDEF:
- midway_shape = get_next_shape_internal(midway_shape, dest_shape->edge_name, SHAPE_IVAR_UNDEF);
- break;
- case SHAPE_ROOT:
- case SHAPE_FROZEN:
- case SHAPE_CAPACITY_CHANGE:
- break;
}
return midway_shape;