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

[map] Make initial resize actually work

上级 661e9ae4
......@@ -123,7 +123,7 @@ struct hb_map_t
{
if (unlikely (in_error)) return;
if (unlikely (key == INVALID)) return;
if ((occupancy + occupancy / 2) > mask && !resize ()) return;
if ((occupancy + occupancy / 2) >= mask && !resize ()) return;
unsigned int i = bucket_for (key);
if (value == INVALID && items[i].key != key)
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册