From 860e52c99ef574c2ab1da95ae4f1f570d0d5190a Mon Sep 17 00:00:00 2001 From: Anonymous Maarten Date: Sat, 27 May 2023 02:12:59 +0200 Subject: [PATCH] windows: SDL_Delay expects a 32-bit integer --- src/core/windows/SDL_immdevice.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/core/windows/SDL_immdevice.c b/src/core/windows/SDL_immdevice.c index 570914884..8f91268fb 100644 --- a/src/core/windows/SDL_immdevice.c +++ b/src/core/windows/SDL_immdevice.c @@ -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; } }