<div dir="ltr">OK. This one surprised me (and I'm sure I'm not the only one.)</div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">On Tue, Feb 2, 2021 at 7:42 AM Sebastian Huber <<a href="mailto:sebastian.huber@embedded-brains.de" target="_blank">sebastian.huber@embedded-brains.de</a>> wrote:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex">Change _Objects_Build_name() so that the result is independent of the<br>
signedness of char.<br>
<br>
Close #4228.<br>
---<br>
cpukit/include/rtems/score/object.h | 8 ++++----<br>
1 file changed, 4 insertions(+), 4 deletions(-)<br>
<br>
diff --git a/cpukit/include/rtems/score/object.h b/cpukit/include/rtems/score/object.h<br>
index 28a2140521..c8243323a6 100644<br>
--- a/cpukit/include/rtems/score/object.h<br>
+++ b/cpukit/include/rtems/score/object.h<br>
@@ -242,10 +242,10 @@ typedef enum {<br>
* @param[in] _C4 is the fourth character of the name<br>
*/<br>
#define _Objects_Build_name( _C1, _C2, _C3, _C4 ) \<br>
- ( (uint32_t)(_C1) << 24 | \<br>
- (uint32_t)(_C2) << 16 | \<br>
- (uint32_t)(_C3) << 8 | \<br>
- (uint32_t)(_C4) )<br>
+ ( (uint32_t) (uint8_t) (_C1) << 24 | \<br>
+ (uint32_t) (uint8_t) (_C2) << 16 | \<br>
+ (uint32_t) (uint8_t) (_C3) << 8 | \<br>
+ (uint8_t) (_C4) )<br>
<br>
/**<br>
* @brief Returns the API portion of the ID.<br>
-- <br>
2.26.2<br>
<br>
_______________________________________________<br>
devel mailing list<br>
<a href="mailto:devel@rtems.org" target="_blank">devel@rtems.org</a><br>
<a href="http://lists.rtems.org/mailman/listinfo/devel" rel="noreferrer" target="_blank">http://lists.rtems.org/mailman/listinfo/devel</a><br>
</blockquote></div>