From e5139c51aaf7ea5ba2d8a54c946b084fc950498f Mon Sep 17 00:00:00 2001 From: Qunxin Liu Date: Mon, 21 Oct 2024 12:54:56 -0700 Subject: [PATCH] bug fix in hashmap get_with_hash() --- src/hb-map.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-map.hh b/src/hb-map.hh index 6521b1a41..6c9fb7e63 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -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 ();