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 {