From 6dcf7c4017619c782dbc8bd2c584bb33df96fc83 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 30 Mar 2019 15:08:39 -0700 Subject: [PATCH] [serialize] Add unused 'tail' --- src/hb-serialize.hh | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/src/hb-serialize.hh b/src/hb-serialize.hh index 679ae4e..ea389c0 100644 --- a/src/hb-serialize.hh +++ b/src/hb-serialize.hh @@ -53,6 +53,7 @@ struct hb_serialize_context_t this->successful = true; this->ran_out_of_room = false; this->head = this->start; + this->tail = this->end; this->debug_depth = 0; } @@ -114,7 +115,7 @@ struct hb_serialize_context_t { if (unlikely (!this->successful)) return nullptr; - if (this->end - this->head < ptrdiff_t (size)) + if (this->tail - this->head < ptrdiff_t (size)) { this->ran_out_of_room = true; this->successful = false; @@ -192,8 +193,8 @@ struct hb_serialize_context_t } public: + char *start, *head, *tail, *end; unsigned int debug_depth; - char *start, *end, *head; bool successful; bool ran_out_of_room; }; -- 2.7.4