Alexandre Julliard : user32/tests: Fix some integer to pointer conversion warnings.

Alexandre Julliard julliard at winehq.org
Thu Jan 8 08:31:01 CST 2009


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

Author: Alexandre Julliard <julliard at winehq.org>
Date:   Thu Jan  8 13:11:49 2009 +0100

user32/tests: Fix some integer to pointer conversion warnings.

---

 dlls/user32/tests/wsprintf.c |   12 ++++++------
 1 files changed, 6 insertions(+), 6 deletions(-)

diff --git a/dlls/user32/tests/wsprintf.c b/dlls/user32/tests/wsprintf.c
index c0ca1c6..29e74cb 100644
--- a/dlls/user32/tests/wsprintf.c
+++ b/dlls/user32/tests/wsprintf.c
@@ -59,12 +59,12 @@ static void wsprintfWTest(void)
 
 static void CharUpperTest(void)
 {
-    int i,out,failed;
+    INT_PTR i,out,failed;
 
     failed = 0;
     for (i=0;i<256;i++)
     	{
-	out = (int) CharUpper((LPTSTR)i);
+	out = (INT_PTR)CharUpper((LPTSTR)i);
 	/* printf("%0x ",out); */
 	if ((out >> 16) != 0)
 	   {
@@ -72,17 +72,17 @@ static void CharUpperTest(void)
 	   break;
 	   }
 	}
-    ok(!failed,"CharUpper failed - 16bit input (0x%0x) returned 32bit result (0x%0x)\n",i,out);
+    ok(!failed,"CharUpper failed - 16bit input (0x%0lx) returned 32bit result (0x%0lx)\n",i,out);
 }
 
 static void CharLowerTest(void)
 {
-    int i,out,failed;
+    INT_PTR i,out,failed;
 
     failed = 0;
     for (i=0;i<256;i++)
     	{
-	out = (int) CharLower((LPTSTR)i);
+	out = (INT_PTR)CharLower((LPTSTR)i);
 	/* printf("%0x ",out); */
 	if ((out >> 16) != 0)
 	   {
@@ -90,7 +90,7 @@ static void CharLowerTest(void)
 	   break;
 	   }
 	}
-    ok(!failed,"CharLower failed - 16bit input (0x%0x) returned 32bit result (0x%0x)\n",i,out);
+    ok(!failed,"CharLower failed - 16bit input (0x%0lx) returned 32bit result (0x%0lx)\n",i,out);
 }
 
 




More information about the wine-cvs mailing list