windows: SDL_Delay expects a 32-bit integer

main
Anonymous Maarten 2023-05-27 02:12:59 +02:00
parent 13a6a72b88
commit 860e52c99e
1 changed files with 1 additions and 1 deletions

View File

@ -378,7 +378,7 @@ int SDL_IMMDevice_Get(LPCWSTR devid, IMMDevice **device, SDL_bool iscapture)
const Uint64 now = SDL_GetTicks();
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;
}
}