From 9df06a26950ced1017395c771e25be56f20fba5c Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Sat, 26 Nov 2022 14:56:45 -0700 Subject: [PATCH] [bit-set] Fix is_subset() short-circut criteria Ouch! --- src/hb-bit-set.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-bit-set.hh b/src/hb-bit-set.hh index 554ae7e4d..d615408e8 100644 --- a/src/hb-bit-set.hh +++ b/src/hb-bit-set.hh @@ -391,7 +391,7 @@ struct hb_bit_set_t bool is_subset (const hb_bit_set_t &larger_set) const { if (has_population () && larger_set.has_population () && - population != larger_set.population) + population > larger_set.population) return false; uint32_t spi = 0;