probably more readable, portable to just say this

This commit is contained in:
unknown 2015-04-20 17:10:15 -04:00
parent 0e05a71f2a
commit 8df2172495
1 changed files with 1 additions and 1 deletions

View File

@ -22,7 +22,7 @@ static int is_valid_hex_digit(char symbol)
if (symbol <= '9')
return 1;
symbol &= ~0x20; /* in ASCII, forces lowercase to uppercase */
symbol &= ~('X' ^ 'x'); /* in ASCII, forces lowercase to uppercase */
if (symbol < 'A')
return 0;
if (symbol <= 'F')