libc: fix parse mistake in strtoul
This commit is contained in:
parent
cf073fa36f
commit
6d12735370
@ -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;
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user