mirror of https://github.com/xzeldon/htop.git
Add cast to unsigned char to avoid signed char misuse
This commit is contained in:
parent
9029cc83ad
commit
7975cd2ca3
|
@ -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')
|
||||
|
|
Loading…
Reference in New Issue