mirror of
https://github.com/TerryCavanagh/VVVVVV.git
synced 2024-12-23 01:59:43 +01:00
Fix VVV_isxdigit() accepting A-Za-z instead of A-Fa-f
This function accepted more characters than it should have. (I made the same mistake on my PR to SDL, embarassingly enough...)
This commit is contained in:
parent
3225be6d9e
commit
b243b116c9
1 changed files with 2 additions and 2 deletions
|
@ -290,8 +290,8 @@ bool is_number(const char* str)
|
|||
|
||||
static bool VVV_isxdigit(const unsigned char digit)
|
||||
{
|
||||
return (digit >= 'a' && digit <= 'z')
|
||||
|| (digit >= 'A' && digit <= 'Z')
|
||||
return (digit >= 'a' && digit <= 'f')
|
||||
|| (digit >= 'A' && digit <= 'F')
|
||||
|| SDL_isdigit(digit);
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in a new issue