Keyboard (Linux): silence compiler warnings

This commit is contained in:
李通洲
2024-10-30 09:28:18 +08:00
parent c6c6803403
commit 6ccc6124d0
+2 -2
View File
@@ -31,9 +31,9 @@ const char* ffDetectKeyboard(FFlist* devices /* List of FFKeyboardDevice */)
if (pend == eventid) continue;
// Ignore duplicate entries
if (flags & (1 << index))
if (flags & (1UL << index))
continue;
flags |= (1 << index);
flags |= (1UL << index);
ffStrbufSetF(&path, "/sys/class/input/event%s/device/name", eventid);