mirror of
https://github.com/libsdl-org/SDL.git
synced 2026-05-25 06:18:40 +00:00
gameinputjoystick: %02hhX emits a -Wformat warning
This commit is contained in:
committed by
Anonymous Maarten
parent
8122b8f2ac
commit
d57c3b685c
@@ -280,7 +280,7 @@ static bool GAMEINPUT_InternalAddOrFind(IGameInputDevice *pDevice)
|
||||
|
||||
// Generate a device path
|
||||
for (idx = 0; idx < APP_LOCAL_DEVICE_ID_SIZE; ++idx) {
|
||||
SDL_snprintf(tmp, SDL_arraysize(tmp), "%02hhX", info->deviceId.value[idx]);
|
||||
SDL_snprintf(tmp, SDL_arraysize(tmp), "%02X", info->deviceId.value[idx]);
|
||||
SDL_strlcat(elem->path, tmp, SDL_arraysize(elem->path));
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user