comctl32/tests: Removed sign comparison warning in imagelist tests.

Marko Nikolic grkoma at gmail.com
Sun Jun 5 08:35:32 CDT 2011


---
 dlls/comctl32/tests/imagelist.c |   11 ++++++-----
 1 files changed, 6 insertions(+), 5 deletions(-)

diff --git a/dlls/comctl32/tests/imagelist.c b/dlls/comctl32/tests/imagelist.c
index cc98a17..46b3595 100644
--- a/dlls/comctl32/tests/imagelist.c
+++ b/dlls/comctl32/tests/imagelist.c
@@ -893,7 +893,8 @@ static void image_list_init(HIMAGELIST himl)
 {
     HBITMAP hbm;
     char comment[16];
-    INT n = 1, i;
+    INT n = 1;
+    DWORD i;
     static const struct test_data
     {
         BYTE grey;
@@ -1757,15 +1758,15 @@ static void test_iconsize(void)
     ok(!ret, "got %d\n", ret);
 
     /* doesn't touch return pointers */
-    cx = 0xdeadbeef;
+    cx = 0x1abe11ed;
     ret = ImageList_GetIconSize(himl, &cx, NULL);
     ok(!ret, "got %d\n", ret);
-    ok(cx == 0xdeadbeef, "got %d\n", cx);
+    ok(cx == 0x1abe11ed, "got %d\n", cx);
 
-    cy = 0xdeadbeef;
+    cy = 0x1abe11ed;
     ret = ImageList_GetIconSize(himl, NULL, &cy);
     ok(!ret, "got %d\n", ret);
-    ok(cy == 0xdeadbeef, "got %d\n", cy);
+    ok(cy == 0x1abe11ed, "got %d\n", cy);
 
     ImageList_Destroy(himl);
 }
-- 
1.7.4.1




More information about the wine-patches mailing list