From 1dbe54c4e653a3aa79abf135fad41a89647e0fd0 Mon Sep 17 00:00:00 2001 From: Sam Lantinga Date: Fri, 19 Jan 2024 06:28:54 -0800 Subject: [PATCH] Fixed warning C4244: 'function': conversion from 'SDL_ThreadID' to 'DWORD', possible loss of data --- src/joystick/windows/SDL_windowsjoystick.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/joystick/windows/SDL_windowsjoystick.c b/src/joystick/windows/SDL_windowsjoystick.c index 29cd35d4d..2206267f6 100644 --- a/src/joystick/windows/SDL_windowsjoystick.c +++ b/src/joystick/windows/SDL_windowsjoystick.c @@ -430,7 +430,7 @@ static void SDL_StopJoystickThread(void) s_bJoystickThreadQuit = SDL_TRUE; SDL_BroadcastCondition(s_condJoystickThread); /* signal the joystick thread to quit */ SDL_UnlockMutex(s_mutexJoyStickEnum); - PostThreadMessage(SDL_GetThreadID(s_joystickThread), WM_QUIT, 0, 0); + PostThreadMessage((DWORD)SDL_GetThreadID(s_joystickThread), WM_QUIT, 0, 0); /* Unlock joysticks while the joystick thread finishes processing messages */ SDL_AssertJoysticksLocked();