summaryrefslogtreecommitdiff
path: root/src/sxwm.c
diff options
context:
space:
mode:
authoruint <72694427+uint23@users.noreply.github.com>2025-08-29 19:46:54 +0100
committerGitHub <noreply@github.com>2025-08-29 19:46:54 +0100
commita9aed1de914ba587843dca86a735a1dd25119dc7 (patch)
tree7ce38dfbd4e680d2f479fb0810e7221dd618f219 /src/sxwm.c
parent2987ba5a5356f437232693a2349d254e4daab5eb (diff)
parent70062cb8bdfe8f663186d02491698b7f34daf688 (diff)
Merge pull request #226 from uint23/dev
merge: fix undefined behavior & add xcursor package to void dep list
Diffstat (limited to 'src/sxwm.c')
-rw-r--r--src/sxwm.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/sxwm.c b/src/sxwm.c
index 6ed33c0..57be734 100644
--- a/src/sxwm.c
+++ b/src/sxwm.c
@@ -2783,10 +2783,10 @@ void update_modifier_masks(void)
/* keycode at mod[i][j] */
KeyCode keycode = mod_mapping->modifiermap[i * mod_mapping->max_keypermod + j];
if (keycode == num) {
- numlock_mask = (1 << i); /* which mod bit == NumLock key */
+ numlock_mask = (1u << i); /* which mod bit == NumLock key */
}
if (keycode == mode) {
- mode_switch_mask = (1 << i); /* which mod bit == Mode_switch key */
+ mode_switch_mask = (1u << i); /* which mod bit == Mode_switch key */
}
}
}