| Index: third_party/harfbuzz-ng/src/hb-buffer-private.hh
|
| diff --git a/third_party/harfbuzz-ng/src/hb-buffer-private.hh b/third_party/harfbuzz-ng/src/hb-buffer-private.hh
|
| index d3ed4491ed9ba587cd348cf3d924e1d4a2c94c15..3a2b9ab4816021c16dacff76c4f41aff94c62805 100644
|
| --- a/third_party/harfbuzz-ng/src/hb-buffer-private.hh
|
| +++ b/third_party/harfbuzz-ng/src/hb-buffer-private.hh
|
| @@ -31,7 +31,6 @@
|
| #define HB_BUFFER_PRIVATE_HH
|
|
|
| #include "hb-private.hh"
|
| -#include "hb-buffer.h"
|
| #include "hb-object-private.hh"
|
| #include "hb-unicode-private.hh"
|
|
|
| @@ -181,7 +180,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 || size < allocated) ? true : enlarge (size); }
|
|
|
| HB_INTERNAL bool make_room_for (unsigned int num_in, unsigned int num_out);
|
| HB_INTERNAL bool shift_forward (unsigned int count);
|
|
|