[bit-set] Fix is_subset() short-circut criteria

Ouch!
This commit is contained in:
Behdad Esfahbod 2022-11-26 14:56:45 -07:00
parent 915c1a00cf
commit 9df06a2695
1 changed files with 1 additions and 1 deletions

View File

@ -391,7 +391,7 @@ struct hb_bit_set_t
bool is_subset (const hb_bit_set_t &larger_set) const bool is_subset (const hb_bit_set_t &larger_set) const
{ {
if (has_population () && larger_set.has_population () && if (has_population () && larger_set.has_population () &&
population != larger_set.population) population > larger_set.population)
return false; return false;
uint32_t spi = 0; uint32_t spi = 0;