RTEMS | cpukit: Correct comparisons of different signedness (!826)

Kinsey Moore (@opticron) gitlab at rtems.org
Fri Nov 7 00:03:34 UTC 2025




Kinsey Moore started a new discussion on cpukit/posix/src/mmap.c: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/826#note_135781

 >    struct stat     sb;
 >    mmap_mapping   *mapping;
 >    mmap_mapping   *current_mapping;
 > -  ssize_t         r;
 > +  size_t          r;

`read()` returns ssize_t which is assigned to `r`. The type change needs to occur elsewhere.

-- 
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/826#note_135781
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/20251107/59af3e6f/attachment.htm>


More information about the bugs mailing list