Austin English : msvcrt/tests: Sign compare fixes.

Alexandre Julliard julliard at winehq.org
Mon May 11 09:10:47 CDT 2009


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

Author: Austin English <austinenglish at gmail.com>
Date:   Fri May  8 11:46:08 2009 -0500

msvcrt/tests: Sign compare fixes.

---

 dlls/msvcrt/tests/data.c |    2 +-
 dlls/msvcrt/tests/heap.c |    8 ++++----
 2 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/msvcrt/tests/data.c b/dlls/msvcrt/tests/data.c
index 40ff46b..db29cd4 100644
--- a/dlls/msvcrt/tests/data.c
+++ b/dlls/msvcrt/tests/data.c
@@ -74,7 +74,7 @@ static void test_initvar( HMODULE hmsvcrt )
     int* (*pp_winmajor)() =  (int*(*)())GetProcAddress(hmsvcrt, "__p__winmajor");
     int* (*pp_winminor)() =  (int*(*)())GetProcAddress(hmsvcrt, "__p__winminor");
     int* (*pp_osver)() =  (int*(*)())GetProcAddress(hmsvcrt, "__p__osver");
-    int winver, winmajor, winminor, osver;
+    unsigned int winver, winmajor, winminor, osver;
 
     if( !( pp_winmajor && pp_winminor && pp_winver)) {
         win_skip("_winver variables are not available\n");
diff --git a/dlls/msvcrt/tests/heap.c b/dlls/msvcrt/tests/heap.c
index 6e6b544..7d3db23 100644
--- a/dlls/msvcrt/tests/heap.c
+++ b/dlls/msvcrt/tests/heap.c
@@ -103,7 +103,7 @@ static void test_aligned_realloc(unsigned int size1, unsigned int size2, unsigne
 	mem1 = malloc(size1);
         if (mem1)
         {
-            int i;
+            unsigned int i;
             for (i = 0; i < size1; i++)
                 ((char *)mem)[i] = i + 1;
             memcpy(mem1, mem, size1);
@@ -138,7 +138,7 @@ static void test_aligned_realloc(unsigned int size1, unsigned int size2, unsigne
                 ok(memcmp(mem2, mem1, min(size1, size2))==0, "_aligned_realloc(%p, %d, %d) has different data\n", mem, size2, alignment);
                 if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug > 1)
                 {
-                    int i;
+                    unsigned int i;
                     for (i = 0; i < min(size1, size2); i++)
                     {
                         if (((char *)mem2)[i] != ((char *)mem1)[i])
@@ -175,7 +175,7 @@ static void test_aligned_offset_realloc(unsigned int size1, unsigned int size2,
 	mem1 = malloc(size1);
         if (mem1)
         {
-            int i;
+            unsigned int i;
             for (i = 0; i < size1; i++)
                 ((char *)mem)[i] = i + 1;
             memcpy(mem1, mem, size1);
@@ -211,7 +211,7 @@ static void test_aligned_offset_realloc(unsigned int size1, unsigned int size2,
                 ok(memcmp(mem2, mem1, min(size1, size2))==0, "_aligned_offset_realloc(%p, %d, %d, %d) has different data\n", mem, size2, alignment, offset);
                 if (memcmp(mem2, mem1, min(size1, size2)) && winetest_debug > 1)
                 {
-                    int i;
+                    unsigned int i;
                     for (i = 0; i < min(size1, size2); i++)
                     {
                         if (((char *)mem2)[i] != ((char *)mem1)[i])




More information about the wine-cvs mailing list