fix my mistakes

This commit is contained in:
Maoake Teriierooiterai
2026-01-13 12:21:15 +01:00
parent 7d2fed6e76
commit b2f9912963
14 changed files with 2 additions and 334 deletions

View File

@@ -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);
}