RTEMS | cpukit/stringto: fix max value for unsigned int (!1050)

Prashant Rahul (@prashantrahul141) gitlab at rtems.org
Fri Feb 6 18:19:07 UTC 2026



Prashant Rahul created a merge request: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/1050

Project:Branches: prashantrahul141/rtems:fix/libmisc/stringto/unsigned-int to rtems/rtos/rtems:main
Author:   Prashant Rahul



## Summary

The max value for unsigned int is defined by UINT_MAX rather than
ULONG_MAX. Using ULONG_MAX causes a build failure for 64bit machines
(tested on x86_64/amd64 and aarch64/raspberrypi4b). This went unnoticed
initially since it didn't raise any error or warning when built for
32bit target.


## Generative AI

<!-- If you have used AI please use the "AI Contribution" template otherwise leave this blank see our fulls statement at https://www.rtems.org/generative-ai/-->


<!-- 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/1050
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/20260206/321ca574/attachment-0001.htm>


More information about the bugs mailing list