Commit d6cd450624e6f0a2d06aeeafe85a8f1ec5019ed3

Anonymous Maarten 2023-05-27T02:34:41

windows: SDL_Delay expects a 32-bit integer

1
2
3
4
5
6
7
8
9
10
11
12
13
diff --git a/src/core/windows/SDL_immdevice.c b/src/core/windows/SDL_immdevice.c
index 71c78c6..d2900f9 100644
--- a/src/core/windows/SDL_immdevice.c
+++ b/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;
             }
         }