diff options
Diffstat (limited to 'testsuites/sptests/sptls01/init.c')
-rw-r--r-- | testsuites/sptests/sptls01/init.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/testsuites/sptests/sptls01/init.c b/testsuites/sptests/sptls01/init.c index 1f06aaaf4a..ba662aa832 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; |