RTEMS | cpukit/rtems: include types.h in optionsimpl.h (!236)
Sebastian Huber (@sebhub)
gitlab at rtems.org
Mon Sep 23 23:21:06 UTC 2024
Sebastian Huber started a new discussion on cpukit/include/rtems/rtems/optionsimpl.h: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/236#note_112437
> rtems_option option_set
> )
> {
> return (option_set & RTEMS_NO_WAIT) ? true : false;
I would rather fix this by changing these expressions. The result type of `(option_set & RTEMS_NO_WAIT)` is an integer and not a bool. This should be `return (option_set & RTEMS_NO_WAIT) != 0;` and `return (option_set & RTEMS_EVENT_ANY) != 0;`.
--
View it on GitLab: https://gitlab.rtems.org/rtems/rtos/rtems/-/merge_requests/236#note_112437
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/20240923/b6364640/attachment.htm>
More information about the bugs
mailing list