summaryrefslogtreecommitdiff
path: root/keytypes.c
diff options
context:
space:
mode:
Diffstat (limited to 'keytypes.c')
-rw-r--r--keytypes.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/keytypes.c b/keytypes.c
index 1a77419..2dba53a 100644
--- a/keytypes.c
+++ b/keytypes.c
@@ -754,7 +754,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)
{