changeset 34996:ebcc17a3c165

Fix compiler warnings (comparison between signed and unsigned).
author ib
date Wed, 15 Aug 2012 13:00:44 +0000
parents 4c589a12ff6c
children 5b01e1e9d9ef
files gui/win32/gui.c gui/win32/interface.c gui/win32/skinload.c
diffstat 3 files changed, 7 insertions(+), 6 deletions(-) [+]
line wrap: on
line diff
--- a/gui/win32/gui.c	Wed Aug 15 12:36:38 2012 +0000
+++ b/gui/win32/gui.c	Wed Aug 15 13:00:44 2012 +0000
@@ -596,7 +596,7 @@
         }
         case WM_WINDOWPOSCHANGED:
         {
-            int tmpheight=0;
+            uint32_t tmpheight=0;
             static uint32_t rect_width;
             static uint32_t rect_height;
             RECT rd;
@@ -652,7 +652,7 @@
             height = rect.bottom - rect.top;
             if(guiInfo.Playing == GUI_STOP)
             {
-                int i;
+                unsigned int i;
                 window *desc = NULL;
 
                 for (i=0; i<gui->skin->windowcount; i++)
@@ -1332,7 +1332,7 @@
 
 static int window_render(gui_t *gui, HWND hWnd, HDC hdc, window_priv_t *priv, window *desc, BITMAPINFO binfo)
 {
-    int i;
+    unsigned int i;
     SetWindowLongPtr(hWnd, GWLP_USERDATA, (LONG_PTR) gui);
     (gui->window_priv_count)++;
     gui->window_priv = realloc(gui->window_priv, sizeof(window_priv_t *) * gui->window_priv_count);
@@ -1380,7 +1380,8 @@
     BITMAPINFO binfo;
     window_priv_t *priv = NULL;
     window *desc = NULL;
-    int i, x = -1, y = -1;
+    unsigned int i;
+    int x = -1, y = -1;
     vo_colorkey = 0xff00ff;
 
     for (i=0; i<gui->skin->windowcount; i++)
--- a/gui/win32/interface.c	Wed Aug 15 12:36:38 2012 +0000
+++ b/gui/win32/interface.c	Wed Aug 15 13:00:44 2012 +0000
@@ -927,7 +927,7 @@
     if(!guiInfo.Playing)
     {
         window *desc = NULL;
-        int i;
+        unsigned int i;
 
         for (i=0; i<mygui->skin->windowcount; i++)
             if(mygui->skin->windows[i]->type == wiVideo)
--- a/gui/win32/skinload.c	Wed Aug 15 12:36:38 2012 +0000
+++ b/gui/win32/skinload.c	Wed Aug 15 13:00:44 2012 +0000
@@ -104,7 +104,7 @@
 /* reads a complete image as is into image buffer */
 static image *pngRead(skin_t *skin, const char *fname)
 {
-    int i;
+    unsigned int i;
     guiImage bmp;
     image *bf;
     char *filename = NULL;