hidden norm cleanup

This commit is contained in:
Tanguy MAZE
2019-03-16 17:50:27 +01:00
parent d49f964045
commit acf5431d14
12 changed files with 104 additions and 106 deletions

View File

@@ -6,7 +6,7 @@
/* By: tmaze <tmaze@student.42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/02/27 11:58:44 by tmaze #+# #+# */
/* Updated: 2019/02/28 16:12:07 by tmaze ### ########.fr */
/* Updated: 2019/03/16 15:47:50 by tmaze ### ########.fr */
/* */
/* ************************************************************************** */
@@ -29,8 +29,8 @@ int ft_atois(const char *str, int *nb)
num--;
*nb = 0;
mult = 1;
while (num >= 0 && ft_isdigit(str[num]) &&
(ft_abs(max - *nb) >= 2000000000))
while (num >= 0 && ft_isdigit(str[num])
&& (ft_abs(max - *nb) >= 2000000000))
{
*nb += (str[num--] - '0') * mult;
mult *= 10;