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,