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

Alexandre Julliard julliard at winehq.org
Thu Jun 2 11:22:59 CDT 2011


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

Author: Marko Nikolic <grkoma at gmail.com>
Date:   Wed Jun  1 13:51:10 2011 +0200

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

---

 dlls/comctl32/tests/toolbar.c |    6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/tests/toolbar.c b/dlls/comctl32/tests/toolbar.c
index 6be6769..50c4091 100644
--- a/dlls/comctl32/tests/toolbar.c
+++ b/dlls/comctl32/tests/toolbar.c
@@ -64,7 +64,7 @@ static const struct message ttgetdispinfo_parent_seq[] = {
 #define compare(val, exp, format) ok((val) == (exp), #val " value " format " expected " format "\n", (val), (exp));
 
 #define check_button_size(handle, width, height, ...) {\
-    DWORD bsize = SendMessageA(handle, TB_GETBUTTONSIZE, 0, 0);\
+    LRESULT bsize = SendMessageA(handle, TB_GETBUTTONSIZE, 0, 0);\
     ok(bsize == MAKELONG(width, height), "Unexpected button size - got size (%d, %d), expected (%d, %d)\n", LOWORD(bsize), HIWORD(bsize), width, height);\
     }
 
@@ -1000,7 +1000,7 @@ static tbsize_alt_result_t tbsize_alt_results[] =
   { 20, 2, { 107, 2, 207, 102 } }
 };
 
-static int tbsize_alt_numtests = 0;
+static DWORD tbsize_alt_numtests = 0;
 
 #define check_sizes_todo(todomask) { \
         RECT rc; \
@@ -1529,7 +1529,7 @@ static void test_setrows(void)
 {
     TBBUTTON buttons[9];
     HWND hToolbar;
-    int i;
+    DWORD i;
 
     for (i=0; i<9; i++)
         MakeButton(buttons+i, 1000+i, TBSTYLE_FLAT | TBSTYLE_CHECKGROUP, 0);




More information about the wine-cvs mailing list