Add cast to unsigned char to avoid signed char misuse

This commit is contained in:
Christian Göttsche 2020-12-02 16:08:50 +01:00 committed by BenBE
parent 9029cc83ad
commit 7975cd2ca3
1 changed files with 1 additions and 1 deletions

View File

@ -518,7 +518,7 @@ static inline uint64_t fast_strtoull_hex(char **str, int maxlen) {
--maxlen;
while (maxlen--) {
nibble = **str;
nibble = (unsigned char)**str;
if (!(valid_mask & (1 << (nibble & 0x1F))))
break;
if ((nibble < '0') || (nibble & ~0x20) > 'F')