From 5da717ac0a3c05a4b3d7705ffcd96f820842a161 Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 20 Mar 2015 17:56:56 -0500 Subject: sptls03/init.c: Make type and constants uint32_t to avoid overflow warnings --- testsuites/sptests/sptls03/init.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'testsuites/sptests') diff --git a/testsuites/sptests/sptls03/init.c b/testsuites/sptests/sptls03/init.c index 7974264001..1487595981 100644 --- a/testsuites/sptests/sptls03/init.c +++ b/testsuites/sptests/sptls03/init.c @@ -22,16 +22,16 @@ const char rtems_test_name[] = "SPTLS 3"; -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 test(void) { Thread_Control *executing = _Thread_Get_executing(); - 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); rtems_test_assert(executing->Start.tls_area == NULL); } -- cgit v1.2.3