Fix hashing in hash_map
This commit is contained in:
parent
d6878b0f1d
commit
c5b2ca6dff
1 changed files with 2 additions and 1 deletions
|
@ -74,7 +74,8 @@ unsigned long long simple_archiver_hash_map_internal_key_to_hash(
|
|||
unsigned long long temp = 0;
|
||||
unsigned int count = 0;
|
||||
for (unsigned int idx = 0; idx < key_size; ++idx) {
|
||||
temp |= *((unsigned char *)key + count++);
|
||||
temp |= ((unsigned long long)*((unsigned char *)key)) << (8 * count);
|
||||
++count;
|
||||
if (count >= 8) {
|
||||
count = 0;
|
||||
seed += temp;
|
||||
|
|
Loading…
Reference in a new issue