03-11-2010, 08:51 AM
This rule was clarified in technical corrigendum (TC1) and the wording is now:
According to this wording, your example:
is not a violation of Rule 12.6.
Quote:The operands of logical operators (&&, || and !) should be effectively Boolean. Expressions that are effectively Boolean should not be used as operands to operators other than (&&, ||, !, =, ==, != and ?:)
According to this wording, your example:
Code:
if (TRUE==TRUE)
Posted by and on behalf of the MISRA C Working Group