summaryrefslogtreecommitdiffstats
path: root/libft/src/ft_uitoa_s.c
diff options
context:
space:
mode:
authorJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:54:12 +0200
committerJozanLeClerc <bousset.rudy@gmail.com>2020-09-29 19:54:12 +0200
commit5ef27d97f1dc36b4e9dd2420ba25166e370913d1 (patch)
tree05fe79b148c750a30c3f0149e933cb3ebc211738 /libft/src/ft_uitoa_s.c
parentUpdate (diff)
download42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.gz
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.bz2
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.xz
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.tar.zst
42-minishell-5ef27d97f1dc36b4e9dd2420ba25166e370913d1.zip
End
Diffstat (limited to '')
-rw-r--r--libft/src/ft_uitoa_s.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_uitoa_s.c b/libft/src/ft_uitoa_s.c
index e030c34..352922d 100644
--- a/libft/src/ft_uitoa_s.c
+++ b/libft/src/ft_uitoa_s.c
@@ -19,7 +19,7 @@ void ft_uitoa_s(char str[], unsigned long n)
uint8_t i;
i = ft_uintlen(n) - 1;
- if (!n)
+ if (n == 0)
str[i] = '0';
nb = n;
str[i + 1] = '\0';