Fix hashing in hash_map (hopefully finally)
This commit is contained in:
parent
da72a2387f
commit
aa2a1bf583
1 changed files with 1 additions and 2 deletions
|
@ -74,8 +74,7 @@ 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 long long)*((unsigned char *)key + count))
|
||||
<< (8 * count);
|
||||
temp |= ((unsigned long long)*((unsigned char *)key + idx)) << (8 * count);
|
||||
++count;
|
||||
if (count >= 8) {
|
||||
count = 0;
|
||||
|
|
Loading…
Reference in a new issue