Skip to content

Commit 6ccc612

Browse files
committed
Keyboard (Linux): silence compiler warnings
1 parent c6c6803 commit 6ccc612

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

src/detection/keyboard/keyboard_linux.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ const char* ffDetectKeyboard(FFlist* devices /* List of FFKeyboardDevice */)
3131
if (pend == eventid) continue;
3232

3333
// Ignore duplicate entries
34-
if (flags & (1 << index))
34+
if (flags & (1UL << index))
3535
continue;
36-
flags |= (1 << index);
36+
flags |= (1UL << index);
3737

3838
ffStrbufSetF(&path, "/sys/class/input/event%s/device/name", eventid);
3939

0 commit comments

Comments
 (0)