提交 a9fa39dc 编写于 作者: B Behdad Esfahbod

[map] More minor

上级 f76c4a77
......@@ -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
{
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册