mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-23 07:51:10 +01:00
[map] Adjust hash function
This commit is contained in:
1 parent
a47b0aebf5
commit
01fc90b68c
1 file changed
+1
-1
+1
-1
@@ -243,7 +243,7 @@ struct hb_hashmap_t
|
||||
{
|
||||
uint32_t h = 0;
|
||||
for (auto pair : iter ())
|
||||
h ^= hb_hash (pair.first) ^ hb_hash (pair.second);
|
||||
h ^= (hb_hash (pair.first) * 31) ^ hb_hash (pair.second);
|
||||
return h;
|
||||
}
|
||||
|
||||
|
||||
Reference in new issue
Block a user