[buffer] HB_NODISCARD enlarge()

This commit is contained in:
Behdad Esfahbod 2021-03-15 13:34:36 -06:00
parent 3f1998a065
commit d8028a0762
1 changed files with 1 additions and 1 deletions

View File

@ -335,7 +335,7 @@ struct hb_buffer_t
/* Internal methods */
HB_INTERNAL bool move_to (unsigned int i); /* i is output-buffer index. */
HB_INTERNAL bool enlarge (unsigned int size);
HB_INTERNAL HB_NODISCARD bool enlarge (unsigned int size);
bool ensure (unsigned int size)
{ return likely (!size || size < allocated) ? true : enlarge (size); }