mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-10-03 08:28:29 +00:00
Fixed warning C6340: Mismatch on sign: 'unsigned char' passed as _Param_(4) when some signed type is required in call to 'SDL_snprintf_REAL'.
This commit is contained in:
@@ -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,
|
||||
|
Reference in New Issue
Block a user