Fix _Processor_mask_To_uint32_t() for targets which use a 64-bit long type. This bug had no impact yet since there are no systems with more than 32 processors known supporting RTEMS. --- cpukit/include/rtems/score/processormask.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/cpukit/include/rtems/score/processormask.h b/cpukit/include/rtems/score/processormask.h index bcdc1c471e..d59da81652 100644 --- a/cpukit/include/rtems/score/processormask.h +++ b/cpukit/include/rtems/score/processormask.h @@ -355,7 +355,7 @@ static inline uint32_t _Processor_mask_To_uint32_t( { long bits = mask->__bits[ __bitset_words( index ) ]; - return (uint32_t) (bits >> (32 * (index % _BITSET_BITS) / 32)); + return (uint32_t) ( bits >> ( 32 * ( ( index % _BITSET_BITS ) / 32 ) ) ); } /** -- 2.35.3 _______________________________________________ devel mailing list devel@rtems.org http://lists.rtems.org/mailman/listinfo/devel