Module: wine Branch: master Commit: dd8e833db23b53292b910411b68b74e96739db41 URL: http://source.winehq.org/git/wine.git/?a=commit;h=dd8e833db23b53292b910411b6...
Author: Andrew Talbot andrew.talbot@talbotville.com Date: Thu Dec 4 22:26:05 2008 +0000
winex11.drv: Sign-compare warnings fix.
---
dlls/winex11.drv/desktop.c | 2 +- dlls/winex11.drv/dib.c | 4 ++-- dlls/winex11.drv/ime.c | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-)
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;