diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 67962eef2..3482a900b 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -488,7 +488,7 @@ struct SortedUnsizedArrayOf : UnsizedArrayOf hb_sorted_array_t as_array (unsigned int len) const { return hb_sorted_array (this->arrayZ, len); } operator hb_sorted_array_t (void) { return as_array (); } - operator hb_sorted_array_t (void) const { as_array (); } + operator hb_sorted_array_t (void) const { return as_array (); } template Type &bsearch (unsigned int len, const T &x, Type ¬_found = Crap (Type)) @@ -804,7 +804,7 @@ struct SortedArrayOf : ArrayOf hb_sorted_array_t as_array (void) const { return hb_sorted_array (this->arrayZ, this->len); } operator hb_sorted_array_t (void) { return as_array (); } - operator hb_sorted_array_t (void) const { as_array (); } + operator hb_sorted_array_t (void) const { return as_array (); } hb_array_t sub_array (unsigned int start_offset, unsigned int count) const { return as_array ().sub_array (start_offset, count);}