Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
8.10.3 Is ~ operator composite?
#1
In 8.10.3, ~ operator is not defined as a composite operator.
Is it necessary to treat ~ operator as composite?

If ~ operator is not composite, then is the following code compliant with Rule 10.6?
u16a = ~u8a;
<t></t>
Reply
#2
The MISRA C:2012 document does not list the ~operator as a composite operator, and therefore it is not composite. However, this is currently under review by the MISRA-C working group and may change in the future.
Posted by and on behalf of the MISRA C Working Group
Reply


Forum Jump:


Users browsing this thread: 1 Guest(s)