summaryrefslogtreecommitdiff
path: root/vmod.c
diff options
context:
space:
mode:
Diffstat (limited to 'vmod.c')
-rw-r--r--vmod.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/vmod.c b/vmod.c
index 17aa7a7..4e591cd 100644
--- a/vmod.c
+++ b/vmod.c
@@ -137,9 +137,9 @@ HandleVModDef(VModDef * stmt, unsigned mergeMode, VModInfo * info)
ACTION("Exiting\n");
return False;
}
- info->defined |= (1 << nextFree);
- info->newlyDefined |= (1 << nextFree);
- info->available |= (1 << nextFree);
+ info->defined |= (1U << nextFree);
+ info->newlyDefined |= (1U << nextFree);
+ info->available |= (1U << nextFree);
names->vmods[nextFree] = stmtName;
if (stmt->value == NULL)
return True;
@@ -217,7 +217,7 @@ LookupVModMask(XPointer priv,
if (LookupVModIndex(priv, elem, field, type, val_rtrn))
{
unsigned ndx = val_rtrn->uval;
- val_rtrn->uval = (1 << (XkbNumModifiers + ndx));
+ val_rtrn->uval = (1U << (XkbNumModifiers + ndx));
return True;
}
return False;