From dd22c29f951ceec98516d7cb378bf2aa7e21d89a Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Tue, 22 May 2018 20:57:19 -0700 Subject: [PATCH] [set] Always check population before checking for equality --- src/hb-set-private.hh | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/hb-set-private.hh b/src/hb-set-private.hh index a4962bc76..9a9f37f38 100644 --- a/src/hb-set-private.hh +++ b/src/hb-set-private.hh @@ -380,9 +380,7 @@ struct hb_set_t inline bool is_equal (const hb_set_t *other) const { - if (population != (unsigned int) -1 && - other->population != (unsigned int) -1 && - population != other->population) + if (get_population () != other->get_population ()) return false; unsigned int na = pages.len;