Changeset 5da717a in rtems


Ignore:
Timestamp:
Mar 20, 2015, 10:56:56 PM (5 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
c2451845
Parents:
dc8ab440
git-author:
Joel Sherrill <joel.sherrill@…> (03/20/15 22:56:56)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:38)
Message:

sptls03/init.c: Make type and constants uint32_t to avoid overflow warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • testsuites/sptests/sptls03/init.c

    rdc8ab440 r5da717a  
    2323const char rtems_test_name[] = "SPTLS 3";
    2424
    25 static volatile int read_write_small = 0xdeadbeef;
     25static volatile uint32_t read_write_small = 0xdeadbeefUL;
    2626
    27 static const volatile int read_only_small = 0x601dc0fe;
     27static const volatile uint32_t read_only_small = 0x601dc0feUL;
    2828
    2929static void test(void)
     
    3131  Thread_Control *executing = _Thread_Get_executing();
    3232
    33   rtems_test_assert(read_write_small == 0xdeadbeef);
    34   rtems_test_assert(read_only_small == 0x601dc0fe);
     33  rtems_test_assert(read_write_small == 0xdeadbeefUL);
     34  rtems_test_assert(read_only_small == 0x601dc0feUL);
    3535
    3636  rtems_test_assert(executing->Start.tls_area == NULL);
Note: See TracChangeset for help on using the changeset viewer.