diff options
| author | Abhinav Prasai <abhinav.prsai@gmail.com> | 2025-08-29 19:34:03 +0100 |
|---|---|---|
| committer | dehroox <dehrexd@gmail.com> | 2025-09-01 15:56:35 +0800 |
| commit | 345c5d5964007c2d7abed8bc563c0ad99e604b50 (patch) | |
| tree | 7ce38dfbd4e680d2f479fb0810e7221dd618f219 /src/sxwm.c | |
| parent | f012760927ef3e55489c52da981a147947261cba (diff) | |
make shiftor unsigned to prevent undefined behavior
Diffstat (limited to 'src/sxwm.c')
| -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 */ } } } |
