Attempt to fix compiler warning.
authorRyan C. Gordon <icculus@icculus.org>
Tue, 30 Jul 2013 00:17:44 -0400
changeset 7543 a96f309059a1
parent 7542 399ff49069a5
child 7544 0508756e7886
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
--- a/src/video/windows/SDL_windowsevents.c	Sun Jul 28 11:24:16 2013 -0700
+++ b/src/video/windows/SDL_windowsevents.c	Tue Jul 30 00:17:44 2013 -0400
@@ -701,7 +701,7 @@
                 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;