mirror of
https://github.com/autc04/Retro68.git
synced 2024-11-26 22:51:01 +00:00
fix bug in hex numbers
This commit is contained in:
parent
6a298ca3bb
commit
959846f093
@ -40,7 +40,7 @@ static int readInt(const char *str, const char *end = NULL, int baseOverride = 0
|
||||
{
|
||||
x *= base;
|
||||
if(*str >= 'a' && *str <= 'z')
|
||||
x += *str - 'a';
|
||||
x += *str - 'a' + 10;
|
||||
else if(*str >= 'A' && *str <= 'Z')
|
||||
x += *str - 'A' + 10;
|
||||
else if(*str >= '0' && *str <= '9')
|
||||
|
Loading…
Reference in New Issue
Block a user