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

[map] Minor

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