mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-29 01:23:56 +01:00
Make buffer size growth start from 32 instead of 8
This commit is contained in:
1 parent
d4bee9f813
commit
65e0063eae
1 file changed
+1
-1
+1
-1
@@ -78,7 +78,7 @@ _hb_buffer_enlarge (hb_buffer_t *buffer, unsigned int size)
|
||||
separate_out = buffer->out_info != buffer->info;
|
||||
|
||||
while (size > new_allocated)
|
||||
new_allocated += (new_allocated >> 1) + 8;
|
||||
new_allocated += (new_allocated >> 1) + 32;
|
||||
|
||||
ASSERT_STATIC (sizeof (buffer->info[0]) == sizeof (buffer->pos[0]));
|
||||
bool overflows = new_allocated >= ((unsigned int) -1) / sizeof (buffer->info[0]);
|
||||
|
||||
Reference in new issue
Block a user