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

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

---
 src/joystick/SDL_gamepad.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/src/joystick/SDL_gamepad.c b/src/joystick/SDL_gamepad.c
index fd07774849e2..66b74cd0027d 100644
--- a/src/joystick/SDL_gamepad.c
+++ b/src/joystick/SDL_gamepad.c
@@ -1695,10 +1695,10 @@ static void SDL_PrivateAppendToMappingString(char *mapping_string,
     SDL_strlcat(mapping_string, ":", mapping_string_len);
     switch (mapping->kind) {
     case EMappingKind_Button:
-        (void)SDL_snprintf(buffer, sizeof(buffer), "b%i", mapping->target);
+        (void)SDL_snprintf(buffer, sizeof(buffer), "b%u", mapping->target);
         break;
     case EMappingKind_Axis:
-        (void)SDL_snprintf(buffer, sizeof(buffer), "%sa%i%s",
+        (void)SDL_snprintf(buffer, sizeof(buffer), "%sa%u%s",
             mapping->half_axis_positive ? "+" :
             mapping->half_axis_negative ? "-" : "",
             mapping->target,