[RTEMS Project] #4863: Operations evaluation order.

RTEMS trac trac at rtems.org
Thu Feb 23 14:30:55 UTC 2023


#4863: Operations evaluation order.
---------------------------+---------------------
 Reporter:  Daniel Páscoa  |       Owner:  (none)
     Type:  defect         |      Status:  new
 Priority:  normal         |   Milestone:
Component:  admin          |     Version:  6
 Severity:  normal         |  Resolution:
 Keywords:  qualification  |  Blocked By:
 Blocking:                 |
---------------------------+---------------------

Comment (by Daniel Páscoa):

 The operators were interpreted as new lines. This is the correct
 description (with a white space between the operators):

 Within cpukit\include\rtems\score\objectimpl.h line 545 one has:

 if ( !the_api | | the_api > OBJECTS_APIS_LAST )
 This shall be equivalent to “if ( (!the_api) | | (the_api >
 OBJECTS_APIS_LAST ))”, but at first glance, this is not always obvious to
 everyone and one might need to read further documentation to be fully sure
 of it.

--
Ticket URL: <http://devel.rtems.org/ticket/4863#comment:1>
RTEMS Project <http://www.rtems.org/>
RTEMS Project


More information about the bugs mailing list