mirror of
https://github.com/libsdl-org/SDL.git
synced 2025-09-06 11:28:15 +00:00
Fixed build warning '=': conversion from 'Uint32' to 'Uint16', possible loss of data
This commit is contained in:
@@ -1315,7 +1315,7 @@ static void HIDAPI_DriverPS5_HandleStatePacketCommon(SDL_Joystick *joystick, SDL
|
|||||||
|
|
||||||
if (ctx->use_alternate_report) {
|
if (ctx->use_alternate_report) {
|
||||||
/* 16-bit timestamp */
|
/* 16-bit timestamp */
|
||||||
Uint16 delta;
|
Uint32 delta;
|
||||||
Uint16 tick = LOAD16(packet->rgucSensorTimestamp[0],
|
Uint16 tick = LOAD16(packet->rgucSensorTimestamp[0],
|
||||||
packet->rgucSensorTimestamp[1]);
|
packet->rgucSensorTimestamp[1]);
|
||||||
if (ctx->last_tick < tick) {
|
if (ctx->last_tick < tick) {
|
||||||
|
Reference in New Issue
Block a user