[rtems commit] libtests/stringto01: Fix 64-bit targets

Sebastian Huber sebh at rtems.org
Fri Nov 24 14:19:00 UTC 2017


Module:    rtems
Branch:    master
Commit:    54e7b81b98da4326dbf34c98b37c61215d3cb2f9
Changeset: http://git.rtems.org/rtems/commit/?id=54e7b81b98da4326dbf34c98b37c61215d3cb2f9

Author:    Sebastian Huber <sebastian.huber at embedded-brains.de>
Date:      Fri Nov 24 15:18:14 2017 +0100

libtests/stringto01: Fix 64-bit targets

Update #3082.

---

 testsuites/libtests/stringto01/init.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/testsuites/libtests/stringto01/init.c b/testsuites/libtests/stringto01/init.c
index eb2e793..02a9360 100644
--- a/testsuites/libtests/stringto01/init.c
+++ b/testsuites/libtests/stringto01/init.c
@@ -60,8 +60,8 @@ static int get_base_10_or_16(const char *s)
 
 /* Test integer conversions */
 #define TEST_STRING_TO_TYPE          int
-#define STRING_TO_MAX                LONG_MAX
-#define STRING_TO_MAX_STRING         __XSTRING(LONG_MAX)
+#define STRING_TO_MAX                INT_MAX
+#define STRING_TO_MAX_STRING         __XSTRING(INT_MAX)
 #define TEST_STRING_TO_NAME          test_rtems_string_to_int
 #define STRING_TO_NAME_METHOD        rtems_string_to_int
 #define STRING_TO_NAME_METHOD_STRING "rtems_string_to_int"



More information about the vc mailing list