From 9ef9fc01148ace504d38ecf304f0e49827e4d27b Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 11 Jul 2022 13:29:23 -0600 Subject: [PATCH] [>64k:layout] Templatize GSUBGPOSFormat1 --- src/hb-open-type.hh | 2 +- src/hb-ot-layout-common.hh | 4 ++-- src/hb-ot-layout-gsubgpos.hh | 12 ++++++------ 3 files changed, 9 insertions(+), 9 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index b87046ab2..2c1c49b15 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -774,7 +774,7 @@ struct List16OfOffsetTo : ArrayOf, HBUINT16> bool sanitize (hb_sanitize_context_t *c, Ts&&... ds) const { TRACE_SANITIZE (this); - return_trace (Array16OfOffset16To::sanitize (c, this, std::forward (ds)...)); + return_trace ((Array16Of>::sanitize (c, this, std::forward (ds)...))); } }; diff --git a/src/hb-ot-layout-common.hh b/src/hb-ot-layout-common.hh index 0d13e4bbc..8cb359e6d 100644 --- a/src/hb-ot-layout-common.hh +++ b/src/hb-ot-layout-common.hh @@ -1407,8 +1407,8 @@ struct Lookup template using LookupList = List16OfOffsetTo; -template -struct LookupOffsetList : List16OfOffset16To +template +struct LookupOffsetList : List16OfOffsetTo { bool subset (hb_subset_context_t *c, hb_subset_layout_context_t *l) const diff --git a/src/hb-ot-layout-gsubgpos.hh b/src/hb-ot-layout-gsubgpos.hh index df2a3febf..dcd0d7c7f 100644 --- a/src/hb-ot-layout-gsubgpos.hh +++ b/src/hb-ot-layout-gsubgpos.hh @@ -4020,7 +4020,7 @@ struct GSUBGPOSVersion1_2 likely (version.major == 1) && scriptList.sanitize (c, this) && featureList.sanitize (c, this) && - reinterpret_cast &> (lookupList).sanitize (c, this)))) + reinterpret_cast &> (lookupList).sanitize (c, this)))) return_trace (false); #ifndef HB_NO_VAR @@ -4038,16 +4038,16 @@ struct GSUBGPOSVersion1_2 auto *out = c->subset_context->serializer->embed (*this); if (unlikely (!out)) return_trace (false); - typedef LookupOffsetList TLookupList; - reinterpret_cast &> (out->lookupList) + typedef LookupOffsetList TLookupList; + reinterpret_cast &> (out->lookupList) .serialize_subset (c->subset_context, - reinterpret_cast &> (lookupList), + reinterpret_cast &> (lookupList), this, c); - reinterpret_cast &> (out->featureList) + reinterpret_cast &> (out->featureList) .serialize_subset (c->subset_context, - reinterpret_cast &> (featureList), + reinterpret_cast &> (featureList), this, c);