RTEMS | cpukit/include/rtems/score: Cast applied to bitwise operations with signed operands (!1076)

Sebastian Huber (@sebhub) gitlab at rtems.org
Tue Mar 31 01:36:07 UTC 2026




Sebastian Huber commented on a discussion on cpukit/include/rtems/score/processormaskimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1076#note_147569

 >    uint32_t              index
 >  )
 >  {
 > -  long bits = mask->__bits[ index / _BITSET_BITS ];
 > +  unsigned long bits = (unsigned long) mask->__bits[ index / _BITSET_BITS ];

See related MRs:
* https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1096
* https://gitlab.rtems.org/contrib/newlib-cygwin/-/merge_requests/4

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1076#note_147569
You're receiving this email because of your account on gitlab.rtems.org.


-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/bugs/attachments/20260331/9d59f629/attachment.htm>


More information about the bugs mailing list