changeset 36775:666757381a27

Avoid pointer cast warnings. Fixes "cast from pointer to integer of different size" warnings. This is corresponding to r36858.
author ib
date Mon, 17 Feb 2014 01:28:05 +0000
parents e75c4955c377
children 5ea757ca6270
files gui/win32/interface.c
diffstat 1 files changed, 4 insertions(+), 3 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/interface.c	Mon Feb 17 00:45:06 2014 +0000
+++ b/gui/win32/interface.c	Mon Feb 17 01:28:05 2014 +0000
@@ -30,6 +30,7 @@
 #endif
 
 #include <windows.h>
+#include <stdint.h>
 
 #if defined(__CYGWIN__) || defined(__WINE__)
 #define _beginthreadex CreateThread
@@ -685,7 +686,7 @@
             break;
         case GUI_SET_STATE:
         {
-            guiInfo.Playing = (int) data;
+            guiInfo.Playing = (intptr_t) data;
             switch (guiInfo.Playing)
             {
                 case GUI_PLAY:
@@ -709,9 +710,9 @@
         }
         case GUI_RUN_COMMAND:
         {
-            mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int) data);
+            mp_msg(MSGT_GPLAYER,MSGL_V, "cmd: %d\n", (int)(intptr_t) data);
             /* MPlayer asks us to quit */
-            switch((int) data)
+            switch((intptr_t) data)
             {
                 case MP_CMD_VO_FULLSCREEN:
                     uiFullScreen();