diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-29 19:34:03 +0100 |
|---|---|---|
| committer | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-29 19:34:03 +0100 |
| commit | 70062cb8bdfe8f663186d02491698b7f34daf688 (patch) | |
| tree | 7ce38dfbd4e680d2f479fb0810e7221dd618f219 /src | |
| parent | add7c02b138b350a8dfd4e3f506b1ec628fd6022 (diff) | |
make shiftor unsigned to prevent undefined behavior
Diffstat (limited to 'src')
| -rw-r--r-- | src/sxwm.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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 */ } } } |
