diff options
Diffstat (limited to 'src/kernel/lib/stdlib/htoi.c')
-rw-r--r-- | src/kernel/lib/stdlib/htoi.c | 2 |
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; |