aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/stdlib/atoi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/userspace/libc/stdlib/atoi.c')
-rw-r--r--src/userspace/libc/stdlib/atoi.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/userspace/libc/stdlib/atoi.c b/src/userspace/libc/stdlib/atoi.c
index 21b6c25..dbfe0cb 100644
--- a/src/userspace/libc/stdlib/atoi.c
+++ b/src/userspace/libc/stdlib/atoi.c
@@ -5,15 +5,15 @@
int atoi(char *str)
{
- u8 s_str = strlen(str);
+ u32 s_str = strlen(str);
if (!s_str)
return 0;
- u8 negative = 0;
+ u32 negative = 0;
if (str[0] == '-')
negative = 1;
- u8 i = 0;
+ u32 i = 0;
if (negative)
i++;