Commit b6b3fb00231ca6bea9b424218625e11c17c9c03c

Sam Lantinga 2022-09-02T09:59:32

This was intended to be Uint8

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
diff --git a/src/joystick/hidapi/SDL_hidapi_wii.c b/src/joystick/hidapi/SDL_hidapi_wii.c
index 9fce490..e5988d6 100644
--- a/src/joystick/hidapi/SDL_hidapi_wii.c
+++ b/src/joystick/hidapi/SDL_hidapi_wii.c
@@ -280,13 +280,13 @@ static SDL_bool ReadRegister(SDL_DriverWii_Context *ctx, Uint32 address, int siz
 
 static SDL_bool SendExtensionIdentify1(SDL_DriverWii_Context *ctx, SDL_bool sync)
 {
-    unsigned char data = 0x55;
+    Uint8 data = 0x55;
     return WriteRegister(ctx, 0xA400F0, &data, sizeof(data), sync);
 }
 
 static SDL_bool SendExtensionIdentify2(SDL_DriverWii_Context *ctx, SDL_bool sync)
 {
-    unsigned char data = 0x00;
+    Uint8 data = 0x00;
     return WriteRegister(ctx, 0xA400FB, &data, sizeof(data), sync);
 }