[rtems commit] sptls03/init.c: Make type and constants uint32_t to avoid overflow warnings
Joel Sherril
joel at rtems.org
Tue Mar 24 13:18:11 UTC 2015
Module: rtems
Branch: master
Commit: 5da717ac0a3c05a4b3d7705ffcd96f820842a161
Changeset: http://git.rtems.org/rtems/commit/?id=5da717ac0a3c05a4b3d7705ffcd96f820842a161
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Fri Mar 20 17:56:56 2015 -0500
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(-)
diff --git a/testsuites/sptests/sptls03/init.c b/testsuites/sptests/sptls03/init.c
index 7974264..1487595 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);
}
More information about the vc
mailing list