diff options
author | Marvin Borner | 2020-04-29 21:16:56 +0200 |
---|---|---|
committer | Marvin Borner | 2020-04-29 21:16:56 +0200 |
commit | 0f54f0de1004c6e9a455c295dc76879ac37a408f (patch) | |
tree | b3a6b086f33689fe887fdfcf80fa4e749b07d119 /src/userspace/libc/stdlib/atoi.c | |
parent | 4546c75d685475d8b9f215b588364e1d1bbd0b79 (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.c | 6 |
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++; |