comdlg32: Sign-compare warnings fix

Andrew Talbot andrew.talbot at talbotville.com
Sat Sep 20 16:29:36 CDT 2008


Changelog:
    comdlg32: Sign-compare warnings fix.

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-patches mailing list