Explorar o código

windows: SDL_Delay expects a 32-bit integer

Anonymous Maarten %!s(int64=2) %!d(string=hai) anos
pai
achega
d6cd450624
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/core/windows/SDL_immdevice.c

+ 1 - 1
src/core/windows/SDL_immdevice.c

@@ -379,7 +379,7 @@ int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
             const Uint64 now = SDL_GetTicks64();
             if (timeout > now) {
                 const Uint64 ticksleft = timeout - now;
-                SDL_Delay(SDL_min(ticksleft, 300));   /* wait awhile and try again. */
+                SDL_Delay((Uint32)SDL_min(ticksleft, 300));   /* wait awhile and try again. */
                 continue;
             }
         }