From f6c2aaeea46bc10833d225d1514a96254a3e6434 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jul 2022 13:06:48 -0600 Subject: [PATCH] [>64k:layout] Add List16OfOffsetTo --- src/hb-open-type.hh | 9 ++++++--- 1 file changed, 6 insertions(+), 3 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 6a0039d8f..b87046ab2 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -743,8 +743,8 @@ template using Array16OfOffset32To = ArrayOf using Array32OfOffset32To = ArrayOf, HBUINT32>; /* Array of offsets relative to the beginning of the array itself. */ -template -struct List16OfOffset16To : Array16OfOffset16To +template +struct List16OfOffsetTo : ArrayOf, HBUINT16> { const Type& operator [] (int i_) const { @@ -762,7 +762,7 @@ struct List16OfOffset16To : Array16OfOffset16To bool subset (hb_subset_context_t *c) const { TRACE_SUBSET (this); - struct List16OfOffset16To *out = c->serializer->embed (*this); + struct List16OfOffsetTo *out = c->serializer->embed (*this); if (unlikely (!out)) return_trace (false); unsigned int count = this->len; for (unsigned int i = 0; i < count; i++) @@ -778,6 +778,9 @@ struct List16OfOffset16To : Array16OfOffset16To } }; +template +using List16OfOffset16To = List16OfOffsetTo; + /* An array starting at second element. */ template struct HeadlessArrayOf