From beea8d604e9dfbba855b0c890f0897a0b8d2b1ad Mon Sep 17 00:00:00 2001
From: Petar Popovic <[EMAIL REDACTED]>
Date: Tue, 29 Jul 2025 11:44:15 +0200
Subject: [PATCH] Replaced binary integer literals with hexadecimal integer
literals
---
src/joystick/hidapi/SDL_hidapi_flydigi.c | 16 ++++++++--------
1 file changed, 8 insertions(+), 8 deletions(-)
diff --git a/src/joystick/hidapi/SDL_hidapi_flydigi.c b/src/joystick/hidapi/SDL_hidapi_flydigi.c
index 1ee50d1efc4c9..938d4c960d94e 100644
--- a/src/joystick/hidapi/SDL_hidapi_flydigi.c
+++ b/src/joystick/hidapi/SDL_hidapi_flydigi.c
@@ -335,28 +335,28 @@ static void HIDAPI_DriverFlydigi_HandleStatePacket(SDL_Joystick *joystick, SDL_D
Uint8 hat;
switch (data[9] & 0x0F) {
- case 0b0001:
+ case 0x01u:
hat = SDL_HAT_UP;
break;
- case 0b0011:
+ case 0x02u | 0x01u:
hat = SDL_HAT_RIGHTUP;
break;
- case 0b0010:
+ case 0x02u:
hat = SDL_HAT_RIGHT;
break;
- case 0b0110:
+ case 0x02u | 0x04u:
hat = SDL_HAT_RIGHTDOWN;
break;
- case 0b0100:
+ case 0x04u:
hat = SDL_HAT_DOWN;
break;
- case 0b1100:
+ case 0x08u | 0x04u:
hat = SDL_HAT_LEFTDOWN;
break;
- case 0b1000:
+ case 0x08u:
hat = SDL_HAT_LEFT;
break;
- case 0b1001:
+ case 0x08u | 0x01u:
hat = SDL_HAT_LEFTUP;
break;
default: