mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-24 16:31:14 +01:00
[map] Optimize copy resizing logic
This commit is contained in:
1 parent
f1d716871d
commit
025a68cb07
1 file changed
+1
-1
+1
-1
@@ -159,7 +159,7 @@ struct hb_hashmap_t
|
||||
{
|
||||
if (unlikely (!successful)) return false;
|
||||
|
||||
if (new_population != 0 && new_population <= population) return true;
|
||||
if (new_population != 0 && (new_population + new_population / 2) < mask) return true;
|
||||
|
||||
unsigned int power = hb_bit_storage (hb_max ((unsigned) population, new_population) * 2 + 8);
|
||||
unsigned int new_size = 1u << power;
|
||||
|
||||
Reference in new issue
Block a user