doing the norm

This commit is contained in:
Maoake Teriierooiterai
2026-01-07 13:23:42 +01:00
parent 93e8c10b27
commit e1351b4d2f
9 changed files with 9 additions and 13 deletions

View File

@@ -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++;