[map] Minor

This commit is contained in:
Behdad Esfahbod 2018-05-29 17:02:22 -07:00
parent 686476a8ae
commit b6959c33e2
1 changed files with 3 additions and 4 deletions

View File

@ -132,12 +132,11 @@ struct hb_map_t
return; /* Trying to delete non-existent key. */
/* Accounting. */
if (items[i].is_tombstone ())
occupancy--;
else if (!items[i].is_unused ())
if (!items[i].is_unused ())
{
population--;
occupancy--;
if (items[i].value != INVALID)
population--;
}
occupancy++;
if (value != INVALID)