dlls/comctl32/tooltips.c -- adjust type of loop vars

Gerald Pfeifer gerald at pfeifer.com
Sat Jun 21 12:51:01 CDT 2008


Spotted using a development version of GCC 4.4.

Gerald


ChangeLog:
Adjust the type of three loop variables from INT to UINT.

Index: dlls/comctl32/tooltips.c
===================================================================
RCS file: /home/wine/wine/dlls/comctl32/tooltips.c,v
retrieving revision 1.101
diff -u -3 -p -r1.101 tooltips.c
--- dlls/comctl32/tooltips.c	3 Apr 2008 10:45:33 -0000	1.101
+++ dlls/comctl32/tooltips.c	21 Jun 2008 17:49:16 -0000
@@ -883,7 +883,7 @@ static INT
 TOOLTIPS_GetToolFromInfoA (const TOOLTIPS_INFO *infoPtr, const TTTOOLINFOA *lpToolInfo)
 {
     TTTOOL_INFO *toolPtr;
-    INT nTool;
+    UINT nTool;
 
     for (nTool = 0; nTool < infoPtr->uNumTools; nTool++) {
 	toolPtr = &infoPtr->tools[nTool];
@@ -910,7 +910,7 @@ static INT
 TOOLTIPS_GetToolFromInfoW (const TOOLTIPS_INFO *infoPtr, const TTTOOLINFOW *lpToolInfo)
 {
     TTTOOL_INFO *toolPtr;
-    INT nTool;
+    UINT nTool;
 
     for (nTool = 0; nTool < infoPtr->uNumTools; nTool++) {
 	toolPtr = &infoPtr->tools[nTool];
@@ -937,7 +937,7 @@ static INT
 TOOLTIPS_GetToolFromPoint (const TOOLTIPS_INFO *infoPtr, HWND hwnd, const POINT *lpPt)
 {
     TTTOOL_INFO *toolPtr;
-    INT  nTool;
+    UINT nTool;
 
     for (nTool = 0; nTool < infoPtr->uNumTools; nTool++) {
 	toolPtr = &infoPtr->tools[nTool];



More information about the wine-patches mailing list