Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Does "u8 = 6L;" violate rule 10.3
#2
The intention was that the exception should only apply to expressions with an essential type whose rank is no greater than signed int. In other words:
"u8 = 6L;" is non compliant as the essential type of 6L is signed long.

This will be corrected in a future Technical Corrigendum.
Posted by and on behalf of the MISRA C Working Group


Messages In This Thread

Forum Jump:


Users browsing this thread: 3 Guest(s)