bug fix in hashmap get_with_hash()

This commit is contained in:
Qunxin Liu authored and Behdad Esfahbod committed 2024-10-21 15:46:06 -06:00
1 parent 825bc19643
commit e5139c51aa
1 file changed
+1 -1
+1 -1
View File
@@ -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 ();