Gerald Pfeifer : comctl32/tests: Add casts to avoid comparison of different int types.

Alexandre Julliard julliard at winehq.org
Mon May 23 13:24:58 CDT 2011


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

Author: Gerald Pfeifer <gerald at pfeifer.com>
Date:   Sun May 22 20:51:30 2011 +0200

comctl32/tests: Add casts to avoid comparison of different int types.

---

 dlls/comctl32/tests/tab.c |    7 ++++---
 1 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/dlls/comctl32/tests/tab.c b/dlls/comctl32/tests/tab.c
index 8b64764..7f5bbb7 100644
--- a/dlls/comctl32/tests/tab.c
+++ b/dlls/comctl32/tests/tab.c
@@ -1313,6 +1313,7 @@ static void test_TCM_SETITEMEXTRA(void)
 static void test_TCS_OWNERDRAWFIXED(void)
 {
     LPARAM lparam, lparam2;
+    ULONG_PTR itemdata;
     TCITEMA item;
     HWND hTab;
     BOOL ret;
@@ -1335,9 +1336,9 @@ static void test_TCS_OWNERDRAWFIXED(void)
     ShowWindow(hTab, SW_SHOW);
     RedrawWindow(hTab, NULL, 0, RDW_UPDATENOW);
 
-    lparam = 0;
-    memset(&lparam, 0xde, 4);
-    ok(g_drawitem.itemData == lparam, "got %lx, expected %lx\n", g_drawitem.itemData, lparam);
+    itemdata = 0;
+    memset(&itemdata, 0xde, 4);
+    ok(g_drawitem.itemData == itemdata, "got %lx, expected %lx\n", g_drawitem.itemData, itemdata);
 
     DestroyWindow(hTab);
 




More information about the wine-cvs mailing list