提交 a1240383 编写于 作者: B Behdad Esfahbod

[arrays] Minor fix

上级 381c3548
......@@ -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);}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册