winex11.drv: Sign-compare warnings fix

Andrew Talbot andrew.talbot at talbotville.com
Thu Dec 4 16:26:05 CST 2008


Changelog:
    winex11.drv: Sign-compare warnings fix.

diff --git a/dlls/winex11.drv/desktop.c b/dlls/winex11.drv/desktop.c
index 9b92a0e..c8b202c 100644
--- a/dlls/winex11.drv/desktop.c
+++ b/dlls/winex11.drv/desktop.c
@@ -45,7 +45,7 @@ static const unsigned int heights[] = {200, 300, 384, 480, 600,  768,  864, 1024
 /* create the mode structures */
 static void make_modes(void)
 {
-    int i;
+    unsigned int i;
     /* original specified desktop size */
     X11DRV_Settings_AddOneMode(screen_width, screen_height, 0, 60);
     for (i=0; i<NUM_DESKTOP_MODES; i++)
diff --git a/dlls/winex11.drv/dib.c b/dlls/winex11.drv/dib.c
index f017943..be38d89 100644
--- a/dlls/winex11.drv/dib.c
+++ b/dlls/winex11.drv/dib.c
@@ -441,7 +441,7 @@ static int *X11DRV_DIB_BuildColorMap( X11DRV_PDEVICE *physDev, WORD coloruse, WO
  */
 static int X11DRV_DIB_MapColor( int *physMap, int nPhysMap, int phys, int oldcol )
 {
-    unsigned int color;
+    int color;
 
     if ((oldcol < nPhysMap) && (physMap[oldcol] == phys))
         return oldcol;
@@ -4314,7 +4314,7 @@ void X11DRV_DIB_CopyDIBSection(X11DRV_PDEVICE *physDevSrc, X11DRV_PDEVICE *physD
         freeColorMap = FALSE;
       } else {
 	  const BITMAPINFO* info = (BITMAPINFO*)&dib.dsBmih;
-	  int i;
+	  unsigned int i;
 
 	  nColorMap = X11DRV_DIB_GetColorCount(info);
 	  x11ColorMap = HeapAlloc(GetProcessHeap(), 0, nColorMap * sizeof(int));
diff --git a/dlls/winex11.drv/ime.c b/dlls/winex11.drv/ime.c
index 56dcaa7..6ca3f9e 100644
--- a/dlls/winex11.drv/ime.c
+++ b/dlls/winex11.drv/ime.c
@@ -505,7 +505,7 @@ static void GenerateIMECHARMessages(HIMC hIMC, LPWSTR String, DWORD length)
 {
     LPINPUTCONTEXT lpIMC;
     LPTRANSMSG lpTransMsg;
-    INT i;
+    DWORD i;
 
     if (length <= 0)
         return;



More information about the wine-patches mailing list