From 462e664d0fdfbe2e9eae5c7e093c5a23b202dae8 Mon Sep 17 00:00:00 2001 From: JozanLeClerc Date: Tue, 29 Sep 2020 19:11:10 +0200 Subject: Norm update --- libft/src/ft_itoa_s.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libft/src/ft_itoa_s.c') diff --git a/libft/src/ft_itoa_s.c b/libft/src/ft_itoa_s.c index 68b6ae3..a3469f3 100644 --- a/libft/src/ft_itoa_s.c +++ b/libft/src/ft_itoa_s.c @@ -19,7 +19,7 @@ void ft_itoa_s(char str[], long n) uint8_t i; i = ft_intlen(n) - 1; - if (!n) + if (n == 0) str[i] = '0'; nb = n; if (n < 0) -- cgit v1.2.3