Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Essential Type of parenthesised expression
#2
This questions relates to ( expression ), which is one of the options of primary-expression. According to the C standard ( C90 6.1.5, C99 6.4.6) "( )" is an operator. It should therefore be covered by Appendix D.7 on essential types.

The absence of ( ) was an oversight and the documentation should include
Quote:Parenthesis ( ( ) )
The essential type of the result is the essential type of the operand.

(3u) is intended to have an essential type of "unsigned char".
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)