mirror of
https://github.com/DavidGailleton/42-Push_Swap.git
synced 2026-01-27 08:41:58 +00:00
fix my mistakes
This commit is contained in:
@@ -18,7 +18,7 @@ int verif_is_number(char **tab)
|
||||
int len;
|
||||
|
||||
len = len_split(tab);
|
||||
if (tab[len - 1][0] == '-')
|
||||
if (tab[len - 1][0] == '-' && !ft_isdigit(tab[len - 1][1]))
|
||||
return (0);
|
||||
return (1);
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user