Commit 1b17708c8846463e207310a2c232bd20f7aadbbc

Ran Benita 2012-03-24T02:33:18

Fix incorrect usage of && instead of & Signed-off-by: Ran Benita <ran234@gmail.com>

1
2
3
4
5
6
7
8
9
10
11
12
13
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)
         {