Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data

This commit is contained in:
Sam Lantinga committed 2023-09-18 13:56:51 -07:00
1 parent 6d3e21c27c
commit a3a5e17282
1 file changed
+1 -1
+1 -1
View File
@@ -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) {