[map] Fix use of !=

This commit is contained in:
Behdad Esfahbod 2022-11-18 19:08:34 -07:00
parent e74b372b59
commit a1768ad829
1 changed files with 1 additions and 1 deletions

View File

@ -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 ())