msvcrt/tests: Use LONG instead of long.

Michael Stefaniuc mstefani at redhat.de
Wed Oct 7 18:20:22 CDT 2009


---
 dlls/msvcrt/tests/string.c |   18 +++++++++---------
 1 files changed, 9 insertions(+), 9 deletions(-)

diff --git a/dlls/msvcrt/tests/string.c b/dlls/msvcrt/tests/string.c
index 5a97bad..fc2ad3c 100644
--- a/dlls/msvcrt/tests/string.c
+++ b/dlls/msvcrt/tests/string.c
@@ -666,40 +666,40 @@ static void test_strtok(void)
 static void test_strtol(void)
 {
     char* e;
-    long l;
-    unsigned long ul;
+    LONG l;
+    ULONG ul;
 
     /* errno is only set in case of error, so reset errno to EBADF to check for errno modification */
     /* errno is modified on W2K8+ */
     errno = EBADF;
     l = strtol("-1234", &e, 0);
-    ok(l==-1234, "wrong value %ld\n", l);
+    ok(l==-1234, "wrong value %d\n", l);
     ok(errno == EBADF || broken(errno == 0), "wrong errno %d\n", errno);
     errno = EBADF;
     ul = strtoul("1234", &e, 0);
-    ok(ul==1234, "wrong value %lu\n", ul);
+    ok(ul==1234, "wrong value %u\n", ul);
     ok(errno == EBADF || broken(errno == 0), "wrong errno %d\n", errno);
 
     errno = EBADF;
     l = strtol("2147483647L", &e, 0);
-    ok(l==2147483647, "wrong value %ld\n", l);
+    ok(l==2147483647, "wrong value %d\n", l);
     ok(errno == EBADF || broken(errno == 0), "wrong errno %d\n", errno);
     errno = EBADF;
     l = strtol("-2147483648L", &e, 0);
-    ok(l==-2147483647L - 1, "wrong value %ld\n", l);
+    ok(l==-2147483647L - 1, "wrong value %d\n", l);
     ok(errno == EBADF || broken(errno == 0), "wrong errno %d\n", errno);
     errno = EBADF;
     ul = strtoul("4294967295UL", &e, 0);
-    ok(ul==4294967295ul, "wrong value %lu\n", ul);
+    ok(ul==4294967295ul, "wrong value %u\n", ul);
     ok(errno == EBADF || broken(errno == 0), "wrong errno %d\n", errno);
 
     errno = 0;
     l = strtol("9223372036854775807L", &e, 0);
-    ok(l==2147483647, "wrong value %ld\n", l);
+    ok(l==2147483647, "wrong value %d\n", l);
     ok(errno == ERANGE, "wrong errno %d\n", errno);
     errno = 0;
     ul = strtoul("9223372036854775807L", &e, 0);
-    ok(ul==4294967295ul, "wrong value %lu\n", ul);
+    ok(ul==4294967295ul, "wrong value %u\n", ul);
     ok(errno == ERANGE, "wrong errno %d\n", errno);
 }
 
-- 
1.6.2.5



More information about the wine-patches mailing list