From 604f35e2dd878b2fd8bebbf2994f6d91e697a03e Mon Sep 17 00:00:00 2001 From: Joel Sherrill Date: Fri, 8 May 2009 18:07:26 +0000 Subject: [PATCH] 2009-05-08 Joel Sherrill * posix/include/rtems/posix/psignal.h, rtems/inline/rtems/rtems/support.inl: Remove warnings. --- cpukit/ChangeLog | 5 +++++ cpukit/posix/include/rtems/posix/psignal.h | 2 +- cpukit/rtems/inline/rtems/rtems/support.inl | 8 ++++---- 3 files changed, 10 insertions(+), 5 deletions(-) diff --git a/cpukit/ChangeLog b/cpukit/ChangeLog index 111e14c160..bdf90fa8b8 100644 --- a/cpukit/ChangeLog +++ b/cpukit/ChangeLog @@ -1,3 +1,8 @@ +2009-05-08 Joel Sherrill + + * posix/include/rtems/posix/psignal.h, + rtems/inline/rtems/rtems/support.inl: Remove warnings. + 2009-05-08 Joel Sherrill * sapi/include/rtems/config.h: Switch from ssize_t to uintptr_t for diff --git a/cpukit/posix/include/rtems/posix/psignal.h b/cpukit/posix/include/rtems/posix/psignal.h index cbada61ee1..37b138e036 100644 --- a/cpukit/posix/include/rtems/posix/psignal.h +++ b/cpukit/posix/include/rtems/posix/psignal.h @@ -29,7 +29,7 @@ static inline sigset_t signo_to_mask( uint32_t sig ) { - return 1 << (sig - 1); + return 1u << (sig - 1); } #define is_valid_signo( _sig ) \ diff --git a/cpukit/rtems/inline/rtems/rtems/support.inl b/cpukit/rtems/inline/rtems/rtems/support.inl index 0f4defc92f..23becf8497 100644 --- a/cpukit/rtems/inline/rtems/rtems/support.inl +++ b/cpukit/rtems/inline/rtems/rtems/support.inl @@ -53,10 +53,10 @@ RTEMS_INLINE_ROUTINE void rtems_name_to_characters( char *c4 ) { - *c1 = (name >> 24) & 0xff; - *c2 = (name >> 16) & 0xff; - *c3 = (name >> 8) & 0xff; - *c4 = name & 0xff; + *c1 = (char) ((name >> 24) & 0xff); + *c2 = (char) ((name >> 16) & 0xff); + *c3 = (char) ((name >> 8) & 0xff); + *c4 = (char) ( name & 0xff); } /**@}*/