Fix type of loop variable in alloc_device().

Gerald Pfeifer gerald at pfeifer.com
Thu Nov 1 12:05:39 CDT 2007


We iterate between 0 and and the value of an usigned variable, so we
should adjust the loop variable accordingly (not the list to silence
GCC).

Gerald

ChangeLog:
Fix type of loop variable in alloc_device().

Index: dlls/dinput/mouse.c
===================================================================
RCS file: /home/wine/wine/dlls/dinput/mouse.c,v
retrieving revision 1.76
diff -u -3 -p -r1.76 mouse.c
--- dlls/dinput/mouse.c	10 Oct 2007 11:47:31 -0000	1.76
+++ dlls/dinput/mouse.c	1 Nov 2007 17:04:23 -0000
@@ -173,7 +173,7 @@ static SysMouseImpl *alloc_device(REFGUI
 {
     SysMouseImpl* newDevice;
     LPDIDATAFORMAT df = NULL;
-    int i;
+    unsigned i;
 
     newDevice = HeapAlloc(GetProcessHeap(),HEAP_ZERO_MEMORY,sizeof(SysMouseImpl));
     if (!newDevice) return NULL;



More information about the wine-patches mailing list