From bbad6f0f796457753fd828bb5c4bfdb9af56f5ed Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Mon, 2 Dec 2002 19:15:58 +0000 Subject: 2002-12-02 Joel Sherrill * include/rtems/rtems/support.h: Added casts to eliminate warnings on 16 bit targets like the h8300. --- cpukit/rtems/ChangeLog | 5 +++++ cpukit/rtems/include/rtems/rtems/support.h | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) (limited to 'cpukit') diff --git a/cpukit/rtems/ChangeLog b/cpukit/rtems/ChangeLog index 22afdb7339..516423e885 100644 --- a/cpukit/rtems/ChangeLog +++ b/cpukit/rtems/ChangeLog @@ -1,3 +1,8 @@ +2002-12-02 Joel Sherrill + + * include/rtems/rtems/support.h: Added casts to eliminate warnings + on 16 bit targets like the h8300. + 2002-11-13 Paul Whitfield * src/regionreturnsegment.c: When RTEMS_REGION_SHRED_ON_FREE is diff --git a/cpukit/rtems/include/rtems/rtems/support.h b/cpukit/rtems/include/rtems/rtems/support.h index c162a92d4f..5f7ccf6a7f 100644 --- a/cpukit/rtems/include/rtems/rtems/support.h +++ b/cpukit/rtems/include/rtems/rtems/support.h @@ -37,7 +37,7 @@ extern "C" { */ #define rtems_build_name( _C1, _C2, _C3, _C4 ) \ - ( (_C1) << 24 | (_C2) << 16 | (_C3) << 8 | (_C4) ) + ( (unsigned32)(_C1) << 24 | (unsigned32)(_C2) << 16 | (unsigned32)(_C3) << 8 | (unsigned32)(_C4) ) /* * rtems_get_class -- cgit v1.2.3