From 836814a571a18bca344c0b35d136b2122122f82e Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 5 Feb 2021 13:41:19 -0500 Subject: [PATCH] [array] Swap order of args to hb_equal() Prioritizes Key::cmp() over table's cmp. --- src/hb-array.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-array.hh b/src/hb-array.hh index 576b1e094..02bd8d81c 100644 --- a/src/hb-array.hh +++ b/src/hb-array.hh @@ -142,7 +142,7 @@ struct hb_array_t : hb_iter_with_fallback_t, Type&> bool lfind (const T &x, unsigned *pos = nullptr) const { for (unsigned i = 0; i < length; ++i) - if (hb_equal (this->arrayZ[i], x)) + if (hb_equal (x, this->arrayZ[i])) { if (pos) *pos = i;