summaryrefslogtreecommitdiff
path: root/keycodes.c
diff options
context:
space:
mode:
Diffstat (limited to 'keycodes.c')
-rw-r--r--keycodes.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/keycodes.c b/keycodes.c
index 8e4fe9e..8e431c6 100644
--- a/keycodes.c
+++ b/keycodes.c
@@ -880,8 +880,8 @@ CompileKeycodes(XkbFile * file, XkbFileInfo * result, unsigned merge)
XkbAtomGetString(NULL, ii->name), False);
if (xkb->indicators != NULL)
{
- unsigned bit;
- bit = 1 << (ii->ndx - 1);
+ unsigned bit = 1U << (ii->ndx - 1);
+
if (ii->virtual)
xkb->indicators->phys_indicators &= ~bit;
else