aboutsummaryrefslogtreecommitdiff
path: root/ft_itoa.c
diff options
context:
space:
mode:
Diffstat (limited to 'ft_itoa.c')
-rw-r--r--ft_itoa.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/ft_itoa.c b/ft_itoa.c
index 426937e..03d794b 100644
--- a/ft_itoa.c
+++ b/ft_itoa.c
@@ -6,7 +6,7 @@
/* By: cacharle <marvin@42.fr> +#+ +:+ +#+ */
/* +#+#+#+#+#+ +#+ */
/* Created: 2019/10/07 10:19:56 by cacharle #+# #+# */
-/* Updated: 2019/10/07 10:21:23 by cacharle ### ########.fr */
+/* Updated: 2019/11/20 01:15:40 by cacharle ### ########.fr */
/* */
/* ************************************************************************** */
@@ -56,7 +56,7 @@ char *ft_itoa(int n)
len--;
while (len >= (is_negative ? 1 : 0))
{
- str[len] = u_nbr % 10 + '0';
+ str[len] = (u_nbr % 10) | 0x30;
u_nbr /= 10;
len--;
}