Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Clarification of Exception for Rule 10.4
#2
I agree with your reasoning and I suspect that this is a mistake in the document.

However, although the example
Code:
u8a += cha
should probably be compliant with Rule 10.4, I believe that it would break Rule 10.3 because the RHS of the assignment would be essentially character but the LHS would be essentially unsigned.

So, I think that this expression still wouldn't be acceptable under MISRA C:2012 but for a different reason.
<t></t>
Reply


Messages In This Thread

Forum Jump:


Users browsing this thread: 1 Guest(s)