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