[PATCH 29/42] sptls01/init.c: Use larger data types for values

Joel Sherrill joel.sherrill at oarcorp.com
Mon Mar 23 14:39:27 UTC 2015


---
 testsuites/sptests/sptls01/init.c | 10 +++++-----
 1 file changed, 5 insertions(+), 5 deletions(-)

diff --git a/testsuites/sptests/sptls01/init.c b/testsuites/sptests/sptls01/init.c
index 1f06aaa..ba662aa 100644
--- a/testsuites/sptests/sptls01/init.c
+++ b/testsuites/sptests/sptls01/init.c
@@ -26,11 +26,11 @@ static rtems_id master_task;
 
 static __thread volatile char tls_item = 123;
 
-static volatile int read_write_small = 0xdeadbeef;
+static volatile uint32_t read_write_small = 0xdeadbeefUL;
 
-static const volatile int read_only_small = 0x601dc0fe;
+static const volatile uint32_t read_only_small = 0x601dc0feUL;
 
-static void check_tls_item(int expected)
+static void check_tls_item(uint32_t expected)
 {
   printf("TLS item = %i\n", tls_item);
   rtems_test_assert(tls_item == expected);
@@ -56,8 +56,8 @@ static void test(void)
 
   master_task = rtems_task_self();
 
-  rtems_test_assert(read_write_small == 0xdeadbeef);
-  rtems_test_assert(read_only_small == 0x601dc0fe);
+  rtems_test_assert(read_write_small == 0xdeadbeefUL);
+  rtems_test_assert(read_only_small == 0x601dc0feUL);
 
   check_tls_item(123);
   tls_item = 5;
-- 
1.9.3




More information about the devel mailing list