From a1768ad82938922cda34603371af86ff8035beac Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 18 Nov 2022 19:08:34 -0700 Subject: [PATCH] [map] Fix use of != --- 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 c88ca8cc3..f938757aa 100644 --- a/src/hb-map.hh +++ b/src/hb-map.hh @@ -327,7 +327,7 @@ struct hb_hashmap_t if (unlikely ((occupancy + occupancy / 2) >= mask && !resize ())) return false; item_t &item = item_for_hash (key, hash); - if (is_delete && item.key != key) + if (is_delete && !(item == key)) return true; /* Trying to delete non-existent key. */ if (item.is_used ())