From 7ace10078c23d00da4af0480f91b877faeed3d38 Mon Sep 17 00:00:00 2001 From: Ebrahim Byagowi Date: Mon, 17 Dec 2018 20:07:04 +0330 Subject: [PATCH] Minor, fix two more ArrayOf incorrect operator logic --- src/hb-open-type.hh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 3482a900b..0d57e45ee 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -382,7 +382,7 @@ struct UnsizedArrayOf hb_array_t as_array (unsigned int len) const { return hb_array (arrayZ, len); } operator hb_array_t (void) { return as_array (); } - operator hb_array_t (void) const { as_array (); } + operator hb_array_t (void) const { return as_array (); } template Type &lsearch (unsigned int len, const T &x, Type ¬_found = Crap (Type)) @@ -534,7 +534,7 @@ struct ArrayOf hb_array_t as_array (void) const { return hb_array (arrayZ, len); } operator hb_array_t (void) { return as_array (); } - operator hb_array_t (void) const { as_array (); } + operator hb_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);}