From cce37a6f10e0c7b06b5ead1223e92c85d88242c0 Mon Sep 17 00:00:00 2001 From: Behdad Esfahbod Date: Fri, 21 Jan 2022 07:31:21 -0700 Subject: [PATCH] [gpos] Fix conditional --- src/hb-ot-layout-gpos-table.hh | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/hb-ot-layout-gpos-table.hh b/src/hb-ot-layout-gpos-table.hh index 7268567e2..be341fb44 100644 --- a/src/hb-ot-layout-gpos-table.hh +++ b/src/hb-ot-layout-gpos-table.hh @@ -1584,7 +1584,7 @@ struct PairPosFormat2 /* Add Devices. */ mask |= mask << 4; - if (valueFormat1 & !mask) + if (valueFormat1 & ~mask) goto bail; /* Is simple kern. Apply value on an empty position slot,