From 94e72cf1c9af563fbf522efb7f2e0b1fcd616418 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 17 Dec 2018 00:06:40 -0500 Subject: [PATCH] [array] Add operator * --- src/hb-array.hh | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/hb-array.hh b/src/hb-array.hh index ddeef0dfc..523e4ce4a 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -65,6 +65,8 @@ struct hb_array_t Type * operator & (void) const { return arrayZ; } + Type & operator * (void) { return (this->operator [])[0]; } + hb_array_t & operator += (unsigned int count) { if (unlikely (count > len))