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

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


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

Author: Marko Nikolic <grkoma at gmail.com>
Date:   Sat Jun  4 23:27:33 2011 +0200

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

---

 dlls/comctl32/tests/monthcal.c |   10 +++++-----
 1 files changed, 5 insertions(+), 5 deletions(-)

diff --git a/dlls/comctl32/tests/monthcal.c b/dlls/comctl32/tests/monthcal.c
index f585376..83b789d 100644
--- a/dlls/comctl32/tests/monthcal.c
+++ b/dlls/comctl32/tests/monthcal.c
@@ -581,9 +581,9 @@ static void test_color(void)
 
     /* invalid color index */
     color = SendMessage(hwnd, MCM_GETCOLOR, MCSC_TRAILINGTEXT + 1, 0);
-    expect(-1, color);
+    expect(~0u, color);
     prev = SendMessage(hwnd, MCM_SETCOLOR, MCSC_TRAILINGTEXT + 1, RGB(255,255,255));
-    expect(-1, prev);
+    expect(~0u, prev);
 
     color = SendMessage(hwnd, MCM_GETCOLOR, MCSC_BACKGROUND, 0);
     prev = SendMessage(hwnd, MCM_SETCOLOR, MCSC_BACKGROUND, RGB(0,0,0));
@@ -920,11 +920,11 @@ static void test_hittest(void)
     res = SendMessage(hwnd, MCM_HITTEST, 0, (LPARAM)&mchit);
     expect(0, mchit.pt.x);
     expect(0, mchit.pt.y);
-    expect(-1, res);
+    expect(~0u, res);
     expect(0, mchit.uHit);
     /* test with invalid pointer */
     res = SendMessage(hwnd, MCM_HITTEST, 0, 0);
-    expect(-1, res);
+    expect(~0u, res);
 
     /* resize control to display single Calendar */
     res = SendMessage(hwnd, MCM_GETMINREQRECT, 0, (LPARAM)&r);
@@ -1655,7 +1655,7 @@ static void test_hittest_v6(void)
     mchit.iRow = -1;
     mchit.iCol = -1;
     ret = SendMessage(hwnd, MCM_HITTEST, 0, (LPARAM)&mchit);
-    if (ret == -1)
+    if (ret == ~0u)
     {
         win_skip("Only MCHITTESTINFO_V1 supported\n");
         DestroyWindow(hwnd);




More information about the wine-cvs mailing list