diff options
Diffstat (limited to 'libft/src/ft_uitoa_s.c')
-rw-r--r-- | libft/src/ft_uitoa_s.c | 2 |
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'; |