msvcrt/tests: Fix a signed/unsigned int mismatch.

Francois Gouget fgouget at free.fr
Sun May 27 06:19:10 CDT 2007


---
This fixes a Visual C++ 2005 warning. 

 dlls/msvcrt/tests/file.c |    6 ++++--
 1 files changed, 4 insertions(+), 2 deletions(-)

diff --git a/dlls/msvcrt/tests/file.c b/dlls/msvcrt/tests/file.c
index 9444b73..46ccad6 100644
--- a/dlls/msvcrt/tests/file.c
+++ b/dlls/msvcrt/tests/file.c
@@ -144,7 +144,8 @@ static void test_readmode( BOOL ascii_mode )
     int fd;
     FILE *file;
     const int *ip;
-    int i, j, m, fp, ao, pl;
+    int i, j, m, ao, pl;
+    unsigned int fp;
     long l;
 
     fd = open ("fdopen.tst", O_WRONLY | O_CREAT | O_BINARY, _S_IREAD |_S_IWRITE);
@@ -307,7 +308,8 @@ static void test_fgetwc( void )
   WCHAR wtextW[BUFSIZ+LLEN+1];
   WCHAR *mytextW = NULL, *aptr, *wptr;
   BOOL diff_found = FALSE;
-  int i, j;
+  int j;
+  unsigned int i;
   long l;
 
   tempf=_tempnam(".","wne");
-- 
1.4.4.4




More information about the wine-patches mailing list