Skip to content

Commit

Permalink
feat: Update sort_some.c
Browse files Browse the repository at this point in the history
  • Loading branch information
Nayeon Kim committed Mar 25, 2022
1 parent 64daa9e commit 51f923f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions push_swap/src/sort/sort_some.c
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 29,8 @@ void sort_three(t_stacks *stacks)
}
if (stack->head->next->content > stack->head->next->next->content)
operator("rra", stacks);
if (!is_ascending(&stacks->a, 3) &&
stack->head->content < stack->head->next->next->content)
if (!is_ascending(&stacks->a, 3)
&& stack->head->content < stack->head->next->next->content)
operator("sa", stacks);
else if (!is_ascending(stack, 3))
operator("ra", stacks);
Expand Down

0 comments on commit 51f923f

Please sign in to comment.