MISRA.LOGIC.OPERAND.NOT_BOOLOperand of logical operator is not effectively boolean. MISRA-C Rule 12.6 (advisory): 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 ?:).This rule is also covered by MISRA.LOGIC.OPERATOR.NOT BOOL. [Koenig 48] The logical operators &&, || and ! can be easily confused with the bitwise operators &, | and ~. See "Boolean Expressions" in the glossary. |