aboutsummaryrefslogtreecommitdiff
path: root/src/userspace/libc/stdlib/atoi.c
diff options
context:
space:
mode:
authorMarvin Borner2020-04-29 21:16:56 +0200
committerMarvin Borner2020-04-29 21:16:56 +0200
commit0f54f0de1004c6e9a455c295dc76879ac37a408f (patch)
treeb3a6b086f33689fe887fdfcf80fa4e749b07d119 /src/userspace/libc/stdlib/atoi.c
parent4546c75d685475d8b9f215b588364e1d1bbd0b79 (diff)
Fixed several warnings, errors and dumb bugs
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++;