From a3a5e17282dddfc256d445cf615da5b45bce1a33 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Mon, 18 Sep 2023 13:56:32 -0700 Subject: [PATCH] Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data --- src/joystick/hidapi/SDL_hidapi_ps5.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/hidapi/SDL_hidapi_ps5.c b/src/joystick/hidapi/SDL_hidapi_ps5.c index 81b77e1d8..8446c553c 100644 --- a/src/joystick/hidapi/SDL_hidapi_ps5.c +++ b/src/joystick/hidapi/SDL_hidapi_ps5.c @@ -1315,7 +1315,7 @@ static void HIDAPI_DriverPS5_HandleStatePacketCommon(SDL_Joystick *joystick, SDL if (ctx->use_alternate_report) { /* 16-bit timestamp */ - Uint16 delta; + Uint32 delta; Uint16 tick = LOAD16(packet->rgucSensorTimestamp[0], packet->rgucSensorTimestamp[1]); if (ctx->last_tick < tick) {