From 5be157b3a2198d4d647a36508e2fa51b51b16d1c Mon Sep 17 00:00:00 2001 From: Ozkan Sezer Date: Fri, 2 Sep 2022 19:33:40 +0300 Subject: [PATCH] SDL_hidapi_wii.c: fix -Wpointer-sign warnings --- src/joystick/hidapi/SDL_hidapi_wii.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/joystick/hidapi/SDL_hidapi_wii.c b/src/joystick/hidapi/SDL_hidapi_wii.c index be030dfaf..9fce4902f 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) { - char data = 0x55; + unsigned char data = 0x55; return WriteRegister(ctx, 0xA400F0, &data, sizeof(data), sync); } static SDL_bool SendExtensionIdentify2(SDL_DriverWii_Context *ctx, SDL_bool sync) { - char data = 0x00; + unsigned char data = 0x00; return WriteRegister(ctx, 0xA400FB, &data, sizeof(data), sync); }