fix stack_int_issorted

This commit is contained in:
hsv2 2022-09-27 19:49:33 +02:00
parent 6f0653a699
commit 996e003d2a
1 changed files with 1 additions and 0 deletions

View File

@ -49,6 +49,7 @@ int stack_int_issorted(const t_stack *s)
{
if (prev > arr_int_get(view.raw, view.top))
return (0);
prev = arr_int_get(view.raw, view.top);
}
return (1);
}