Leave one extra item at the end of buffer allocation
Just in case, for the times we do out-of-bounds access. jk
This commit is contained in:
parent
075d671f10
commit
d16ccc4ae7
|
@ -148,7 +148,7 @@ struct hb_buffer_t {
|
|||
HB_INTERNAL bool enlarge (unsigned int size);
|
||||
|
||||
inline bool ensure (unsigned int size)
|
||||
{ return likely (size <= allocated) ? true : enlarge (size); }
|
||||
{ return likely (size < allocated) ? true : enlarge (size); }
|
||||
|
||||
HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out);
|
||||
|
||||
|
|
Loading…
Reference in New Issue