mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-26 01:11:25 +01:00
bug fix in hashmap get_with_hash()
This commit is contained in:
1 parent
825bc19643
commit
e5139c51aa
1 file changed
+1
-1
+1
-1
@@ -307,7 +307,7 @@ struct hb_hashmap_t
|
||||
const V& get_with_hash (const K &key, uint32_t hash) const
|
||||
{
|
||||
if (!items) return item_t::default_value ();
|
||||
auto *item = fetch_item (key, hb_hash (key));
|
||||
auto *item = fetch_item (key, hash);
|
||||
if (item)
|
||||
return item->value;
|
||||
return item_t::default_value ();
|
||||
|
||||
Reference in new issue
Block a user