Module: wine Branch: master Commit: 8c13dcc2e9f20165a27244d212ea4a8933449d98 URL: http://source.winehq.org/git/wine.git/?a=commit;h=8c13dcc2e9f20165a27244d212...
Author: Marko Nikolic grkoma@gmail.com Date: Tue May 31 23:38:46 2011 +0200
comctl32/tests: Use unsigned constants to remove sign comparison warning.
---
dlls/comctl32/tests/treeview.c | 6 +++--- 1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/dlls/comctl32/tests/treeview.c b/dlls/comctl32/tests/treeview.c index 5fd26a0..324473d 100644 --- a/dlls/comctl32/tests/treeview.c +++ b/dlls/comctl32/tests/treeview.c @@ -634,7 +634,7 @@ static void test_get_set_bkcolor(void)
/* If the value is -1, the control is using the system color for the background color. */ crColor = (COLORREF)SendMessage( hTree, TVM_GETBKCOLOR, 0, 0 ); - ok(crColor == -1, "Default background color reported as 0x%.8x\n", crColor); + ok(crColor == ~0u, "Default background color reported as 0x%.8x\n", crColor);
/* Test for black background */ SendMessage( hTree, TVM_SETBKCOLOR, 0, RGB(0,0,0) ); @@ -873,7 +873,7 @@ static void test_get_set_textcolor(void) flush_sequences(sequences, NUM_MSG_SEQUENCES);
crColor = (COLORREF)SendMessage( hTree, TVM_GETTEXTCOLOR, 0, 0 ); - ok(crColor == -1, "Default text color reported as 0x%.8x\n", crColor); + ok(crColor == ~0u, "Default text color reported as 0x%.8x\n", crColor);
/* Test for black text */ SendMessage( hTree, TVM_SETTEXTCOLOR, 0, RGB(0,0,0) ); @@ -1453,7 +1453,7 @@ static void test_WM_PAINT(void) hTree = create_treeview_control(0);
clr = SendMessageA(hTree, TVM_SETBKCOLOR, 0, RGB(255, 0, 0)); - ok(clr == -1, "got %d, expected -1\n", clr); + ok(clr == ~0u, "got %d, expected -1\n", clr);
hdc = GetDC(hMainWnd);