mirror of
https://github.com/storytold/harfbuzz.git
synced 2026-11-20 14:31:10 +01:00
[set] Always check population before checking for equality
This commit is contained in:
1 parent
2eb9bbd986
commit
dd22c29f95
1 file changed
+1
-3
@@ -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;
|
||||
|
||||
Reference in new issue
Block a user