pkgsrc-WIP-changes archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

coreclr-git: Improve patches for -Wconstant-conversion



Module Name:	pkgsrc-wip
Committed By:	Kamil Rytarowski <n54%gmx.com@localhost>
Pushed By:	kamil
Date:		Thu Feb 4 19:15:34 2016 +0100
Changeset:	e36810366008278d34e441434e6da14bbb02bbbb

Modified Files:
	coreclr-git/distinfo
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c
	coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c

Log Message:
coreclr-git: Improve patches for -Wconstant-conversion

To see a diff of this commit:
https://wip.pkgsrc.org/cgi-bin/gitweb.cgi?p=pkgsrc-wip.git;a=commitdiff;h=e36810366008278d34e441434e6da14bbb02bbbb

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

diffstat:
 coreclr-git/distinfo                                 | 20 ++++++++++----------
 ...al_tests_palsuite_c__runtime_sscanf_test4_test4.c | 13 +++++++++++--
 ...al_tests_palsuite_c__runtime_sscanf_test5_test5.c | 13 +++++++++++--
 ...al_tests_palsuite_c__runtime_sscanf_test6_test6.c | 12 ++++++++++--
 ...al_tests_palsuite_c__runtime_sscanf_test7_test7.c | 13 +++++++++++--
 ...al_tests_palsuite_c__runtime_sscanf_test8_test8.c | 13 +++++++++++--
 ...l_tests_palsuite_c__runtime_swscanf_test4_test4.c | 12 ++++++++++--
 ...l_tests_palsuite_c__runtime_swscanf_test5_test5.c | 12 ++++++++++--
 ...l_tests_palsuite_c__runtime_swscanf_test6_test6.c | 13 +++++++++++--
 ...l_tests_palsuite_c__runtime_swscanf_test7_test7.c | 12 ++++++++++--
 ...l_tests_palsuite_c__runtime_swscanf_test8_test8.c | 13 +++++++++++--
 11 files changed, 116 insertions(+), 30 deletions(-)

diffs:
diff --git a/coreclr-git/distinfo b/coreclr-git/distinfo
index 455f35c..c678457 100644
--- a/coreclr-git/distinfo
+++ b/coreclr-git/distinfo
@@ -10,13 +10,13 @@ SHA1 (patch-src_pal_src_exception_seh-unwind.cpp) = 64a221a2f57b6654cae73a2aba0b
 SHA1 (patch-src_pal_src_exception_signal.cpp) = ba0cabad71792a0108ffd9ec29254751f1e95997
 SHA1 (patch-src_pal_src_include_pal_synchcache.hpp) = 7ace14659295f07fd62e0d2a5f2b2d55541debfb
 SHA1 (patch-src_pal_src_thread_context.cpp) = c982763c5b6c9905fd1f14b1271baae5a2fbf052
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c) = 01e8f755465d5d9e2beb7333d711759c75c3a9a7
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c) = 94c430a39f26663cca6cdae78548e7b4d776b88f
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c) = 2f5f1eb383c460b9c3ae7200466da83b50e3f1ee
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c) = 9d1b59c46576c5749e1fd69863fe98885077a6e7
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c) = 1f6cdd3d4b519c066243daf63a38ebb80e4387ed
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c) = 199b35febf3131498b40732d9f2ac930fd69c24c
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c) = b3d756b032fc0a5df3bbd79bd4b360b966f2536c
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c) = b34a7ff156a208e4d2fb7d5be1fad00a056b1dd3
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c) = c9c466c9bf16d92cbc49edd7871ef49df8b5d7e8
-SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c) = 308f4de7dc624572db2090e4b1c81b3ee4a6d902
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c) = f9d52fa5a7f6c215186a33b2847a77799c5d9093
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c) = 5a2527106707efab05e990965bc336219d62f2c3
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c) = 816c3b7bda86664adc06cf2bc52d4c6063a34c76
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c) = 1ab27ca6fe6b68f74fed6c22a1af7d648d2e9e93
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c) = 5a87decf74f703b574e109a22b81a974eae4b8b9
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c) = 823d59ec0b678eee2ac7a222022fe3caaf3149f4
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c) = f9636dd137d86cd7950d735f092fb13df8505b95
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c) = e51600bfd6ab73c95c51ed5bc468f4baec49022b
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c) = aa77ae6c78aef8800f5e441ad64efd9167472cc1
+SHA1 (patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c) = 61ab6bca0b3d7740bb06fd97ead821f81890a4dc
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c
index 272c794..26e5f3d 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test4_test4.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/sscanf/test4/test4.c
-@@ -29,7 +29,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -29,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest("-1", "%d", -1);
      DoNumTest("0x1234", "%d", 0);
      DoNumTest("012", "%d", 12);
 -    DoShortNumTest("-1", "%hd", 65535);
-+//    DoShortNumTest("-1", "%hd", 65535);
++    DoShortNumTest("-1", "%hd", n65535);
      DoShortNumTest("65536", "%hd", 0);
      DoNumTest("-1", "%ld", -1);
      DoNumTest("65536", "%ld", 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c
index ce1f659..ba3950b 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test5_test5.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/sscanf/test5/test5.c
-@@ -28,7 +28,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -18,6 +18,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -28,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest("-1", "%i", -1);
      DoNumTest("0x1234", "%i", 0x1234);
      DoNumTest("012", "%i", 10);
 -    DoShortNumTest("-1", "%hi", 65535);
-+//    DoShortNumTest("-1", "%hi", 65535);
++    DoShortNumTest("-1", "%hi", n65535);
      DoShortNumTest("65536", "%hi", 0);
      DoNumTest("-1", "%li", -1);
      DoNumTest("65536", "%li", 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c
index 20af2d6..d3de150 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test6_test6.c
@@ -2,12 +2,20 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/sscanf/test6/test6.c
-@@ -29,7 +29,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -18,6 +18,7 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
+ 
+     if (PAL_Initialize(argc, argv))
+     {
+@@ -29,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest("-1", "%o", -1);
      DoNumTest("0x1234", "%o", 0);
      DoNumTest("012", "%o", 10);
 -    DoShortNumTest("-1", "%ho", 65535);
-+//    DoShortNumTest("-1", "%ho", 65535);
++    DoShortNumTest("-1", "%ho", n65535);
      DoShortNumTest("200000", "%ho", 0);
      DoNumTest("-1", "%lo", -1);
      DoNumTest("200000", "%lo", 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c
index b2b63a5..62df5ad 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test7_test7.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/sscanf/test7/test7.c
-@@ -28,7 +28,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -18,6 +18,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -28,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest("-1", "%x", -1);
      DoNumTest("0x1234", "%x", 0x1234);
      DoNumTest("012", "%x", 0x12);
 -    DoShortNumTest("-1", "%hx", 65535);
-+//    DoShortNumTest("-1", "%hx", 65535);
++    DoShortNumTest("-1", "%hx", n65535);
      DoShortNumTest("10000", "%hx", 0);
      DoNumTest("-1", "%lx", -1);
      DoNumTest("10000", "%lx", 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c
index c42c62a..5d79542 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_sscanf_test8_test8.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/sscanf/test8/test8.c
-@@ -28,7 +28,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -18,6 +18,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -28,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest("-1", "%u", -1);
      DoNumTest("0x1234", "%u", 0);
      DoNumTest("012", "%u", 12);
 -    DoShortNumTest("-1", "%hu", 65535);
-+//    DoShortNumTest("-1", "%hu", 65535);
++    DoShortNumTest("-1", "%hu", n65535);
      DoShortNumTest("65536", "%hu", 0);
      DoNumTest("-1", "%lu", -1);
      DoNumTest("65536", "%lu", 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c
index 961c92f..3550c97 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test4_test4.c
@@ -2,12 +2,20 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/swscanf/test4/test4.c
-@@ -30,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,7 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
+ 
+     if (PAL_Initialize(argc, argv))
+     {
+@@ -30,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest(convert("-1"), convert("%d"), -1);
      DoNumTest(convert("0x1234"), convert("%d"), 0);
      DoNumTest(convert("012"), convert("%d"), 12);
 -    DoShortNumTest(convert("-1"), convert("%hd"), 65535);
-+//    DoShortNumTest(convert("-1"), convert("%hd"), 65535);
++    DoShortNumTest(convert("-1"), convert("%hd"), n65535);
      DoShortNumTest(convert("65536"), convert("%hd"), 0);
      DoNumTest(convert("-1"), convert("%ld"), -1);
      DoNumTest(convert("65536"), convert("%ld"), 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c
index 1ac5e4d..35ccea9 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test5_test5.c
@@ -2,12 +2,20 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/swscanf/test5/test5.c
-@@ -30,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,7 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
+ 
+     if (PAL_Initialize(argc, argv))
+     {
+@@ -30,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest(convert("-1"), convert("%i"), -1);
      DoNumTest(convert("0x1234"), convert("%i"), 0x1234);
      DoNumTest(convert("012"), convert("%i"), 10);
 -    DoShortNumTest(convert("-1"), convert("%hi"), 65535);
-+//    DoShortNumTest(convert("-1"), convert("%hi"), 65535);
++    DoShortNumTest(convert("-1"), convert("%hi"), n65535);
      DoShortNumTest(convert("65536"), convert("%hi"), 0);
      DoNumTest(convert("-1"), convert("%li"), -1);
      DoNumTest(convert("65536"), convert("%li"), 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c
index 779cee9..8e4f4af 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test6_test6.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/swscanf/test6/test6.c
-@@ -29,7 +29,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -29,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest(convert("-1"), convert("%o"), -1);
      DoNumTest(convert("0x1234"), convert("%o"), 0);
      DoNumTest(convert("012"), convert("%o"), 10);
 -    DoShortNumTest(convert("-1"), convert("%ho"), 65535);
-+//    DoShortNumTest(convert("-1"), convert("%ho"), 65535);
++    DoShortNumTest(convert("-1"), convert("%ho"), n65535);
      DoShortNumTest(convert("200000"), convert("%ho"), 0);
      DoNumTest(convert("-1"), convert("%lo"), -1);
      DoNumTest(convert("200000"), convert("%lo"), 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c
index 322494c..316459e 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test7_test7.c
@@ -2,12 +2,20 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/swscanf/test7/test7.c
-@@ -30,7 +30,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,7 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
+ 
+     if (PAL_Initialize(argc, argv))
+     {
+@@ -30,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest(convert("-1"), convert("%x"), -1);
      DoNumTest(convert("0x1234"), convert("%x"), 0x1234);
      DoNumTest(convert("012"), convert("%x"), 0x12);
 -    DoShortNumTest(convert("-1"), convert("%hx"), 65535);
-+//    DoShortNumTest(convert("-1"), convert("%hx"), 65535);
++    DoShortNumTest(convert("-1"), convert("%hx"), n65535);
      DoShortNumTest(convert("10000"), convert("%hx"), 0);
      DoNumTest(convert("-1"), convert("%lx"), -1);
      DoNumTest(convert("10000"), convert("%lx"), 65536);
diff --git a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c
index 4f90fd3..0fbf274 100644
--- a/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c
+++ b/coreclr-git/patches/patch-src_pal_tests_palsuite_c__runtime_swscanf_test8_test8.c
@@ -2,12 +2,21 @@ $NetBSD$
 
 --- src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.c.orig	2016-01-28 19:04:13.000000000 +0000
 +++ src/pal/tests/palsuite/c_runtime/swscanf/test8/test8.c
-@@ -29,7 +29,7 @@ int __cdecl main(int argc, char *argv[])
+@@ -19,6 +19,8 @@
+ 
+ int __cdecl main(int argc, char *argv[])
+ {
++    int n65535 = 65535; /* Walkaround compiler strictness */
++
+     if (PAL_Initialize(argc, argv))
+     {
+         return FAIL;
+@@ -29,7 +31,7 @@ int __cdecl main(int argc, char *argv[])
      DoNumTest(convert("-1"), convert("%u"), -1);
      DoNumTest(convert("0x1234"), convert("%u"), 0);
      DoNumTest(convert("012"), convert("%u"), 12);
 -    DoShortNumTest(convert("-1"), convert("%hu"), 65535);
-+//    DoShortNumTest(convert("-1"), convert("%hu"), 65535);
++    DoShortNumTest(convert("-1"), convert("%hu"), n65535);
      DoShortNumTest(convert("65536"), convert("%hu"), 0);
      DoNumTest(convert("-1"), convert("%lu"), -1);
      DoNumTest(convert("65536"), convert("%lu"), 65536);


Home | Main Index | Thread Index | Old Index