From 391ed256d21a6ae2e2456d1809f357e6e96e15d1 Mon Sep 17 00:00:00 2001 From: Marvin Borner Date: Mon, 20 Jan 2020 23:12:54 +0100 Subject: Added pure awesomeness Actually quite some days of work but ok --- src/kernel/lib/stdlib/atoi.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/kernel/lib/stdlib/atoi.c') 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; -- cgit v1.2.3