From f2b56af3ef721ce3961bea7d2ee8b6dba6f3fbf2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Wed, 26 Dec 2018 19:14:39 -0500 Subject: [PATCH] [iter] Remove hack for older compilers --- src/hb-iter.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-iter.hh b/src/hb-iter.hh index 43d03a8d0..4c3ac4c13 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -62,7 +62,7 @@ struct hb_iter_t explicit_operator bool () const { return more (); } item_t& operator * () const { return item (); } item_t* operator -> () const { return hb_addressof (item ()); } - item_t& operator [] (signed i) const { return item_at ((unsigned) i); } + item_t& operator [] (unsigned i) const { return item_at (i); } iter_t& operator += (unsigned count) { forward (count); return *thiz(); } iter_t& operator ++ () { next (); return *thiz(); } iter_t& operator -= (unsigned count) { rewind (count); return *thiz(); }