probably more readable, portable to just say this
This commit is contained in:
parent
0e05a71f2a
commit
8df2172495
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue