SDL: Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(2) when some signed type is required in call to...

From 6a736d7766f66040fd4402af8443d742105250b9 Mon Sep 17 00:00:00 2001
From: Sam Lantinga <[EMAIL REDACTED]>
Date: Mon, 4 Dec 2023 21:47:59 -0800
Subject: [PATCH] Fixed warning C6340: Mismatch on sign: 'unsigned char' passed
 as _Param_(2) when some signed type is required in call to
 'SDL_SetError_REAL'.

---
 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 423835e623c3..ee8b8ce9868c 100644
--- a/src/joystick/hidapi/SDL_hidapi_wii.c
+++ b/src/joystick/hidapi/SDL_hidapi_wii.c
@@ -272,7 +272,7 @@ static SDL_bool WriteRegister(SDL_DriverWii_Context *ctx, Uint32 address, const
             return SDL_FALSE;
         }
         if (ctx->m_rgucReadBuffer[4]) {
-            SDL_SetError("Write memory failed: %d", ctx->m_rgucReadBuffer[4]);
+            SDL_SetError("Write memory failed: %u", ctx->m_rgucReadBuffer[4]);
             return SDL_FALSE;
         }
     }
@@ -335,7 +335,7 @@ static SDL_bool ParseExtensionIdentifyResponse(SDL_DriverWii_Context *ctx, Uint1
         }
 
         if (error) {
-            SDL_SetError("Failed to read extension type: %d", error);
+            SDL_SetError("Failed to read extension type: %u", error);
         } else {
             SDL_SetError("Unexpected read length when reading extension type: %d", (ctx->m_rgucReadBuffer[3] >> 4) + 1);
         }