[arrays] Minor fix

This commit is contained in:
Behdad Esfahbod 2018-12-17 10:44:14 -05:00
parent 381c3548e9
commit a1240383aa
1 changed files with 2 additions and 2 deletions

View File

@ -488,7 +488,7 @@ struct SortedUnsizedArrayOf : UnsizedArrayOf<Type>
hb_sorted_array_t<const Type> as_array (unsigned int len) const
{ return hb_sorted_array (this->arrayZ, len); }
operator hb_sorted_array_t<Type> (void) { return as_array (); }
operator hb_sorted_array_t<const Type> (void) const { as_array (); }
operator hb_sorted_array_t<const Type> (void) const { return as_array (); }
template <typename T>
Type &bsearch (unsigned int len, const T &x, Type &not_found = Crap (Type))
@ -804,7 +804,7 @@ struct SortedArrayOf : ArrayOf<Type, LenType>
hb_sorted_array_t<const Type> as_array (void) const
{ return hb_sorted_array (this->arrayZ, this->len); }
operator hb_sorted_array_t<Type> (void) { return as_array (); }
operator hb_sorted_array_t<const Type> (void) const { as_array (); }
operator hb_sorted_array_t<const Type> (void) const { return as_array (); }
hb_array_t<const Type> sub_array (unsigned int start_offset, unsigned int count) const
{ return as_array ().sub_array (start_offset, count);}