Changeset dc8ab440 in rtems


Ignore:
Timestamp:
Mar 21, 2015, 7:45:10 PM (4 years ago)
Author:
Joel Sherrill <joel.sherrill@…>
Branches:
4.11, master
Children:
5da717a
Parents:
0d36bfb3
git-author:
Joel Sherrill <joel.sherrill@…> (03/21/15 19:45:10)
git-committer:
Joel Sherrill <joel.sherrill@…> (03/24/15 13:16:37)
Message:

sptls01/init.c: Use larger data types for values

File:
1 edited

Legend:

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

    r0d36bfb3 rdc8ab440  
    2727static __thread volatile char tls_item = 123;
    2828
    29 static volatile int read_write_small = 0xdeadbeef;
     29static volatile uint32_t read_write_small = 0xdeadbeefUL;
    3030
    31 static const volatile int read_only_small = 0x601dc0fe;
     31static const volatile uint32_t read_only_small = 0x601dc0feUL;
    3232
    33 static void check_tls_item(int expected)
     33static void check_tls_item(uint32_t expected)
    3434{
    3535  printf("TLS item = %i\n", tls_item);
     
    5757  master_task = rtems_task_self();
    5858
    59   rtems_test_assert(read_write_small == 0xdeadbeef);
    60   rtems_test_assert(read_only_small == 0x601dc0fe);
     59  rtems_test_assert(read_write_small == 0xdeadbeefUL);
     60  rtems_test_assert(read_only_small == 0x601dc0feUL);
    6161
    6262  check_tls_item(123);
Note: See TracChangeset for help on using the changeset viewer.