From 4e16203d49405cc0eb81d82693e8606e80d004fd Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:00:27 +0200 Subject: Some norm --- libft/src/ft_intlen.c | 5 ++--- 1 file changed, 2 insertions(+), 3 deletions(-) (limited to 'libft/src/ft_intlen.c') diff --git a/libft/src/ft_intlen.c b/libft/src/ft_intlen.c index c122657..76d2e4f 100644 --- a/libft/src/ft_intlen.c +++ b/libft/src/ft_intlen.c @@ -12,13 +12,12 @@ #include -uint8_t - ft_intlen(long n) +uint8_t ft_intlen(long n) { uint8_t len; len = 0; - if (!n) + if (n == 0) return (1); if (n < 0) len = 1; -- cgit v1.2.3