Andrew Talbot : comdlg32: Sign-compare warnings fix.

Alexandre Julliard julliard at winehq.org
Mon Sep 22 07:03:57 CDT 2008


Module: wine
Branch: master
Commit: 4f1fabf33566d0e1b0ea99a349acc70538cb700a
URL:    http://source.winehq.org/git/wine.git/?a=commit;h=4f1fabf33566d0e1b0ea99a349acc70538cb700a

Author: Andrew Talbot <andrew.talbot at talbotville.com>
Date:   Sat Sep 20 22:29:36 2008 +0100

comdlg32: Sign-compare warnings fix.

---

 dlls/comdlg32/fontdlg.c  |    4 ++--
 dlls/comdlg32/printdlg.c |    2 +-
 2 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comdlg32/fontdlg.c b/dlls/comdlg32/fontdlg.c
index 9174ce0..b893282 100644
--- a/dlls/comdlg32/fontdlg.c
+++ b/dlls/comdlg32/fontdlg.c
@@ -150,7 +150,7 @@ static const struct {
 
 void _dump_cf_flags(DWORD cflags)
 {
-    int i;
+    unsigned int i;
 
     for (i = 0; i < sizeof(cfflags)/sizeof(cfflags[0]); i++)
         if (cfflags[i].mask & cflags)
@@ -428,7 +428,7 @@ static int AddFontSizeToCombo3(HWND hwnd, UINT h, const CHOOSEFONTW *lpcf)
 static int SetFontSizesToCombo3(HWND hwnd, const CHOOSEFONTW *lpcf)
 {
     static const BYTE sizes[]={6,7,8,9,10,11,12,14,16,18,20,22,24,26,28,36,48,72};
-    int i;
+    unsigned int i;
 
     for (i = 0; i < sizeof(sizes)/sizeof(sizes[0]); i++)
         if (AddFontSizeToCombo3(hwnd, sizes[i], lpcf)) return 1;
diff --git a/dlls/comdlg32/printdlg.c b/dlls/comdlg32/printdlg.c
index ccf5145..d8d2082 100644
--- a/dlls/comdlg32/printdlg.c
+++ b/dlls/comdlg32/printdlg.c
@@ -1040,7 +1040,7 @@ BOOL PRINTDLG_ChangePrinterA(HWND hDlg, char *name,
 		HWND hQuality = GetDlgItem(hDlg, cmb1);
 		LONG* Resolutions;
 		char buf[255];
-		int i;
+		DWORD i;
 		int dpiX, dpiY;
 		HDC hPrinterDC = CreateDCA(PrintStructures->lpPrinterInfo->pDriverName,
 					   PrintStructures->lpPrinterInfo->pPrinterName,




More information about the wine-cvs mailing list