aboutsummaryrefslogtreecommitdiff
path: root/src/kernel/lib/stdlib/htoi.c
diff options
context:
space:
mode:
authorMarvin Borner2020-01-20 23:12:54 +0100
committerMarvin Borner2020-01-20 23:12:54 +0100
commit391ed256d21a6ae2e2456d1809f357e6e96e15d1 (patch)
tree0fe9ffb3c59bbfeb3d8a04ab7fc6efba60d81e79 /src/kernel/lib/stdlib/htoi.c
parentd5d1749257ff8b9aa6b5ace4b4720b484a2860f3 (diff)
Added pure awesomeness
Actually quite some days of work but ok
Diffstat (limited to 'src/kernel/lib/stdlib/htoi.c')
-rw-r--r--src/kernel/lib/stdlib/htoi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/kernel/lib/stdlib/htoi.c b/src/kernel/lib/stdlib/htoi.c
index f2d4702..cc77e16 100644
--- a/src/kernel/lib/stdlib/htoi.c
+++ b/src/kernel/lib/stdlib/htoi.c
@@ -16,7 +16,7 @@ int htoi(char *str)
else if (c >= 'A' && c <= 'F')
aux = (c - 'A') + 10;
- ret += aux * pow(16, (s_str - i) - 1);
+ ret += aux * pow(16, (int) ((s_str - i) - 1));
}
return ret;