[iter] Remove hack for older compilers
authorBehdad Esfahbod <behdad@behdad.org>
Thu, 27 Dec 2018 00:14:39 +0000 (19:14 -0500)
committerBehdad Esfahbod <behdad@behdad.org>
Mon, 21 Jan 2019 01:12:12 +0000 (20:12 -0500)
src/hb-iter.hh

index 43d03a8..4c3ac4c 100644 (file)
@@ -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(); }