Преглед на файлове

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

Sam Lantinga преди 2 години
родител
ревизия
a3a5e17282
променени са 1 файла, в които са добавени 1 реда и са изтрити 1 реда
  1. 1 1
      src/joystick/hidapi/SDL_hidapi_ps5.c

+ 1 - 1
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) {