RTEMS | testsuites/.../tc-timecounter-install.c: Address << of negative value (!854)

Joel Sherrill (@joel) gitlab at rtems.org
Tue Nov 25 21:58:52 UTC 2025



Joel Sherrill created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/854

Project:Branches: joel/rtems:fix-left-shift-of-negative-value to rtems/rtos/rtems:main
Author:   Joel Sherrill
Assignee: Joel Sherrill
Reviewer: Kinsey Moore


## Summary

testsuites/.../tc-timecounter-install.c: Address << of negative value

This change was made to address GCC -Wshift-negative-value.
Shifting a negative value is undefined in the C programming language
because one's and two's complement representations give different
results.

Closes #5385.


<!-- Default settings, if it is a dropdown it will set after submission -->

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/854
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/20251125/6e310e1a/attachment-0001.htm>


More information about the bugs mailing list