diff options
author | Christian Göttsche <cgzones@googlemail.com> | 2020-12-02 16:08:50 +0100 |
---|---|---|
committer | BenBE <BenBE@geshi.org> | 2020-12-02 19:14:22 +0100 |
commit | 7975cd2ca38b2ba84a96796159a3cd9959bf7e95 (patch) | |
tree | a9f97b380b95608a6aa93d9962f1f19d48622ae6 | |
parent | 9029cc83ad2f12cb447ed80d816684e856733a9a (diff) |
Add cast to unsigned char to avoid signed char misuse
-rw-r--r-- | linux/LinuxProcessList.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/linux/LinuxProcessList.c b/linux/LinuxProcessList.c index 6e6b4d8d..9f2a8b8c 100644 --- a/linux/LinuxProcessList.c +++ b/linux/LinuxProcessList.c @@ -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') |