1
0
Fork 0
mirror of https://github.com/TerryCavanagh/VVVVVV.git synced 2024-11-05 02:39:41 +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:
Misa 2021-02-15 20:43:58 -08:00 committed by Ethan Lee
parent 3225be6d9e
commit b243b116c9

View file

@ -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);
}