From 595aa58379bbbb14149212b9619f6047751d6f78 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sun, 4 Jun 2023 15:24:36 -0600 Subject: [PATCH] [UnsizedArray] Minor simplify operator[] --- src/hb-open-type.hh | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/hb-open-type.hh b/src/hb-open-type.hh index 01c29f74c..0a6b16fd3 100644 --- a/src/hb-open-type.hh +++ b/src/hb-open-type.hh @@ -462,14 +462,12 @@ struct UnsizedArrayOf HB_DELETE_CREATE_COPY_ASSIGN (UnsizedArrayOf); - const Type& operator [] (int i_) const + const Type& operator [] (unsigned int i) const { - unsigned int i = (unsigned int) i_; return arrayZ[i]; } - Type& operator [] (int i_) + Type& operator [] (unsigned int i) { - unsigned int i = (unsigned int) i_; return arrayZ[i]; }