aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib/atoi.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/kernel/lib/stdlib/atoi.c')
-rw-r--r--src/kernel/lib/stdlib/atoi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/lib/stdlib/atoi.c b/src/kernel/lib/stdlib/atoi.c
index 4044972..bcdd395 100644
--- a/src/kernel/lib/stdlib/atoi.c
+++ b/src/kernel/lib/stdlib/atoi.c
@@ -16,7 +16,7 @@ int atoi(char *str)
int ret = 0;
for (; i < s_str; i++) {
- ret += (str[i] - '0') * pow(10, (s_str - i) - 1);
+ ret += (str[i] - '0') * pow(10, (int) ((s_str - i) - 1));
}
if (negative) ret *= -1;