From 4c3b19d52ec7a1fa46f8d0971e377a7d29b87e27 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 7 Oct 2018 22:30:42 -0400 Subject: [PATCH] Support HBUINT32 BinSearchArrayOf --- src/hb-open-type.hh | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index cd3e773fb..9a0873369 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -706,6 +706,7 @@ struct SortedArrayOf : ArrayOf * Binary-search arrays */ +template struct BinSearchHeader { inline operator uint32_t (void) const { return len; } @@ -728,17 +729,17 @@ struct BinSearchHeader } protected: - HBUINT16 len; - HBUINT16 searchRange; - HBUINT16 entrySelector; - HBUINT16 rangeShift; + LenType len; + LenType searchRange; + LenType entrySelector; + LenType rangeShift; public: DEFINE_SIZE_STATIC (8); }; -template -struct BinSearchArrayOf : SortedArrayOf {}; +template +struct BinSearchArrayOf : SortedArrayOf > {}; struct VarSizedBinSearchHeader {