diff options
Diffstat (limited to 'libft/src/ft_uitoa.c')
-rw-r--r-- | libft/src/ft_uitoa.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libft/src/ft_uitoa.c b/libft/src/ft_uitoa.c index cc41d91..a9d76c4 100644 --- a/libft/src/ft_uitoa.c +++ b/libft/src/ft_uitoa.c @@ -23,7 +23,7 @@ char *ft_uitoa(unsigned long n) i = ft_uintlen(n) - 1; if (!(s = (char*)malloc((i + 2) * sizeof(char)))) return (NULL); - if (!n) + if (n == 0) s[i] = '0'; nb = n; s[i + 1] = '\0'; |