projects
/
apps
/
core
/
preloaded
/
video-player.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4bee9f
)
Make buffer size growth start from 32 instead of 8
author
Behdad Esfahbod
<behdad@behdad.org>
Wed, 27 Apr 2011 13:33:58 +0000
(09:33 -0400)
committer
Behdad Esfahbod
<behdad@behdad.org>
Wed, 27 Apr 2011 13:38:23 +0000
(09:38 -0400)
src/hb-buffer.cc
patch
|
blob
|
history
diff --git
a/src/hb-buffer.cc
b/src/hb-buffer.cc
index
7cf5adc
..
5468270
100644
(file)
--- a/
src/hb-buffer.cc
+++ b/
src/hb-buffer.cc
@@
-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]);