[map] More minor

This commit is contained in:
Behdad Esfahbod committed 2018-05-29 17:31:01 -07:00
1 parent f76c4a7708
commit a9fa39dca5
1 file changed
+6 -4
+6 -4
View File
@@ -133,15 +133,17 @@ struct hb_map_t
if (!items[i].is_unused ())
{
occupancy--;
if (items[i].value != INVALID)
if (items[i].is_tombstone ())
population--;
}
occupancy++;
if (value != INVALID)
population++;
items[i].key = key;
items[i].value = value;
occupancy++;
if (!items[i].is_tombstone ())
population++;
}
inline hb_codepoint_t get (hb_codepoint_t key) const
{