libc: fix parse mistake in strtoul

This commit is contained in:
K. Lange 2018-12-27 21:15:36 +09:00
parent cf073fa36f
commit 6d12735370
1 changed files with 2 additions and 2 deletions

View File

@ -21,10 +21,10 @@ static int convert_digit(char c) {
return c - '0';
}
if (c >= 'a' && c <= 'z') {
return c - 'a';
return c - 'a' + 0xa;
}
if (c >= 'A' && c <= 'Z') {
return c - 'A';
return c - 'A' + 0xa;
}
return 0;
}