From b8198f3b2a8f6e45925d67e7cef6b2add264a26b Mon Sep 17 00:00:00 2001 From: "Ryan C. Gordon" Date: Tue, 30 Jul 2013 00:17:44 -0400 Subject: [PATCH] Attempt to fix compiler warning. Fixes Bugzilla #1784. (or at least the only part of it that was a real bug.) --- src/video/windows/SDL_windowsevents.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/video/windows/SDL_windowsevents.c b/src/video/windows/SDL_windowsevents.c index ca799ff80..78d31d54e 100644 --- a/src/video/windows/SDL_windowsevents.c +++ b/src/video/windows/SDL_windowsevents.c @@ -701,7 +701,7 @@ WIN_WindowProc(HWND hwnd, UINT msg, WPARAM wParam, LPARAM lParam) for (i = 0; i < num_inputs; ++i) { PTOUCHINPUT input = &inputs[i]; - const SDL_TouchID touchId = (SDL_TouchID)input->hSource; + const SDL_TouchID touchId = (SDL_TouchID)((size_t)input->hSource); if (!SDL_GetTouch(touchId)) { if (SDL_AddTouch(touchId, "") < 0) { continue;