Fix incorrect usage of && instead of & Signed-off-by: Ran Benita <ran234@gmail.com>
diff --git a/src/xkbcomp/keytypes.c b/src/xkbcomp/keytypes.c
index 5268d2d..0e00666 100644
--- a/src/xkbcomp/keytypes.c
+++ b/src/xkbcomp/keytypes.c
@@ -710,7 +710,7 @@ SetPreserve(KeyTypeInfo * type,
new.preMods = rtrn.uval & 0xff;
new.preVMods = (rtrn.uval >> 16) & 0xffff;
if ((new.preMods & (~new.indexMods))
- || (new.preVMods && (~new.indexVMods)))
+ || (new.preVMods & (~new.indexVMods)))
{
if (warningLevel > 0)
{