From 6ccc6124d0324ccc705a22e1b20c4accc33bf6e7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=9D=8E=E9=80=9A=E6=B4=B2?= Date: Wed, 30 Oct 2024 09:28:18 +0800 Subject: [PATCH] Keyboard (Linux): silence compiler warnings --- src/detection/keyboard/keyboard_linux.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/detection/keyboard/keyboard_linux.c b/src/detection/keyboard/keyboard_linux.c index 8952ca674..e2d482150 100644 --- a/src/detection/keyboard/keyboard_linux.c +++ b/src/detection/keyboard/keyboard_linux.c @@ -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);