diff options
author | van Hauser <vh@thc.org> | 2024-06-13 09:20:42 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2024-06-13 09:20:42 +0200 |
commit | 36db3428ab16156dd72196213d2a02a5eadaed11 (patch) | |
tree | 619b14542f1f9495360b024492898d6f6b819f92 /src/hashmap.c | |
parent | 9f6b012fbfc8b79dda83e73a208e429aaf25e7ee (diff) | |
parent | e7da8b9d6bf20b1cac960b1eccf3beac3fbf7901 (diff) | |
download | afl++-36db3428ab16156dd72196213d2a02a5eadaed11.tar.gz |
Merge pull request #2123 from AFLplusplus/dev
push to stable
Diffstat (limited to 'src/hashmap.c')
-rw-r--r-- | src/hashmap.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/hashmap.c b/src/hashmap.c index a0a9283c..5834802f 100644 --- a/src/hashmap.c +++ b/src/hashmap.c @@ -59,7 +59,7 @@ static inline unsigned int hash(uint64_t key) { bool hashmap_search_and_add(uint8_t type, uint64_t key) { if (unlikely(type >= 8)) return false; - uint64_t val = (key & 0xf8ffffffffffffff) + (type << 56); + uint64_t val = (key & 0xf8ffffffffffffff) + ((uint64_t)type << 56); unsigned int index = hash(val); HashNode *node = _hashmap->table[index]; while (node) { |