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

Alexandre Julliard julliard at winehq.org
Mon Jun 6 15:19:07 CDT 2011


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

Author: Marko Nikolic <grkoma at gmail.com>
Date:   Sun Jun  5 15:35:32 2011 +0200

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

---

 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);
 }




More information about the wine-cvs mailing list