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

Sebastian Huber (@sebhub) gitlab at rtems.org
Tue Mar 31 02:15:24 UTC 2026




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

 >   */
 >  static inline time_t _Timestamp_Get_seconds( const Timestamp_Control *_time )
 >  {
 > -  return ( *_time >> 32 );
 > +  return (time_t) ( ( (uint64_t) *_time ) >> 32 );

Before this can be addressed, #5538 needs to be resolved.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1076#note_147583
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/57347f88/attachment.htm>


More information about the bugs mailing list