[iter] Fix filter rewinding

This commit is contained in:
David Corbett 2019-05-11 11:38:06 -04:00 committed by Behdad Esfahbod
parent b854d4ff46
commit c1c122e7b3
1 changed files with 1 additions and 1 deletions

View File

@ -433,7 +433,7 @@ struct hb_filter_iter_t :
__item_t__ __item__ () const { return *it; }
bool __more__ () const { return bool (it); }
void __next__ () { do ++it; while (it && !hb_has (p.get (), hb_get (f.get (), *it))); }
void __prev__ () { --it; }
void __prev__ () { do --it; while (it && !hb_has (p.get (), hb_get (f.get (), *it))); }
hb_filter_iter_t __end__ () const { return hb_filter_iter_t (it.end (), p, f); }
bool operator != (const hb_filter_iter_t& o) const
{ return it != o.it || p != o.p || f != o.f; }