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