mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-12-01 10:34:23 +01:00
[map] Make initial resize actually work
This commit is contained in:
1 parent
661e9ae4a5
commit
f76c4a7708
1 file changed
+1
-1
@@ -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)
|
||||
|
||||
Reference in new issue
Block a user