From 98549e452476d5e05a06f2861467b4cd7bef8181 Mon Sep 17 00:00:00 2001 From: Sebastian Huber Date: Tue, 2 Feb 2021 15:40:42 +0100 Subject: score: _Objects_Build_name() signed/unsigned char Change _Objects_Build_name() so that the result is independent of the signedness of char. Close #4228. --- cpukit/include/rtems/score/object.h | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/cpukit/include/rtems/score/object.h b/cpukit/include/rtems/score/object.h index 28a2140521..c8243323a6 100644 --- a/cpukit/include/rtems/score/object.h +++ b/cpukit/include/rtems/score/object.h @@ -242,10 +242,10 @@ typedef enum { * @param[in] _C4 is the fourth character of the name */ #define _Objects_Build_name( _C1, _C2, _C3, _C4 ) \ - ( (uint32_t)(_C1) << 24 | \ - (uint32_t)(_C2) << 16 | \ - (uint32_t)(_C3) << 8 | \ - (uint32_t)(_C4) ) + ( (uint32_t) (uint8_t) (_C1) << 24 | \ + (uint32_t) (uint8_t) (_C2) << 16 | \ + (uint32_t) (uint8_t) (_C3) << 8 | \ + (uint8_t) (_C4) ) /** * @brief Returns the API portion of the ID. -- cgit v1.2.3