summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-20 17:56:56 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2015-03-24 08:16:38 -0500
commit5da717ac0a3c05a4b3d7705ffcd96f820842a161 (patch)
treeae00c443622278645eac4d14ce547d128acb9539
parentsptls01/init.c: Use larger data types for values (diff)
downloadrtems-5da717ac0a3c05a4b3d7705ffcd96f820842a161.tar.bz2
sptls03/init.c: Make type and constants uint32_t to avoid overflow warnings
-rw-r--r--testsuites/sptests/sptls03/init.c8
1 files changed, 4 insertions, 4 deletions
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);
}