diff options
author | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-02 15:40:42 +0100 |
---|---|---|
committer | Sebastian Huber <sebastian.huber@embedded-brains.de> | 2021-02-03 05:58:49 +0100 |
commit | 98549e452476d5e05a06f2861467b4cd7bef8181 (patch) | |
tree | 721846e616ff5b7734f93e0fd8872daa1ae42104 /cpukit/include/rtems/score/object.h | |
parent | rtems: Avoid duplicated implemenation (diff) | |
download | rtems-98549e452476d5e05a06f2861467b4cd7bef8181.tar.bz2 |
score: _Objects_Build_name() signed/unsigned char
Change _Objects_Build_name() so that the result is independent of the
signedness of char.
Close #4228.
Diffstat (limited to 'cpukit/include/rtems/score/object.h')
-rw-r--r-- | cpukit/include/rtems/score/object.h | 8 |
1 files 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. |