[set] Always check population before checking for equality

This commit is contained in:
Behdad Esfahbod 2018-05-22 20:57:19 -07:00
parent 2eb9bbd986
commit dd22c29f95
1 changed files with 1 additions and 3 deletions

View File

@ -380,9 +380,7 @@ struct hb_set_t
inline bool is_equal (const hb_set_t *other) const inline bool is_equal (const hb_set_t *other) const
{ {
if (population != (unsigned int) -1 && if (get_population () != other->get_population ())
other->population != (unsigned int) -1 &&
population != other->population)
return false; return false;
unsigned int na = pages.len; unsigned int na = pages.len;