From 0b1ca5a13b6921cb4d00f8651bb99fc7c7037ec2 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Mon, 6 May 2019 23:04:32 -0700 Subject: [PATCH] [iter] Adjust hb_filter --- 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 3240fc37a..009511298 100644 --- a/src/hb-iter.hh +++ b/src/hb-iter.hh @@ -374,7 +374,7 @@ struct hb_filter_iter_t : static constexpr bool is_sorted_iterator = Iter::is_sorted_iterator; __item_t__ __item__ () const { return *it; } bool __more__ () const { return bool (it); } - void __next__ () { do ++it; while (it && !p (f (*it))); } + void __next__ () { do ++it; while (it && !hb_has (p, hb_get (f, *it))); } void __prev__ () { --it; } bool operator != (const hb_filter_iter_t& o) const { return it != o.it || p != o.p || f != o.f; }