mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
doing the norm
This commit is contained in:
@@ -24,7 +24,8 @@ static int to_insert(t_stacks *stacks, int sorted)
|
||||
a = stacks->a;
|
||||
while (i < sorted)
|
||||
{
|
||||
if (stacks->b->value > a->previous->value && stacks->b->value <= a->value)
|
||||
if (stacks->b->value > a->previous->value
|
||||
&& stacks->b->value <= a->value)
|
||||
return (i);
|
||||
a = a->previous;
|
||||
i++;
|
||||
|
||||
Reference in New Issue
Block a user