mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 00:41:57 +00:00
finish the disorder
This commit is contained in:
@@ -58,7 +58,6 @@ int calcul_range(int value, int range)
|
||||
{
|
||||
int max_range;
|
||||
|
||||
|
||||
max_range = 0;
|
||||
if (value == 2147483647)
|
||||
return (value);
|
||||
|
||||
@@ -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);
|
||||
|
||||
Reference in New Issue
Block a user