finish the disorder

This commit is contained in:
Maoake Teriierooiterai
2026-01-12 12:37:56 +01:00
parent 69dc80e498
commit ccccc3b640
10 changed files with 28 additions and 19 deletions

View File

@@ -58,7 +58,6 @@ int calcul_range(int value, int range)
{
int max_range;
max_range = 0;
if (value == 2147483647)
return (value);

View File

@@ -22,7 +22,7 @@ static int get_max_number(t_stack *first)
a = first;
max = a->value;
pass = 1;
while (a!= first || pass == 1)
while (a != first || pass == 1)
{
pass = 0;
if (max < a->value)
@@ -46,7 +46,6 @@ static int get_min_number(t_stack *first)
pass = 0;
if (min > a->value)
min = a->value;
a = a->next;
}
return (min);