Mixed types in expressions cc4m_logo_inline

IDSTAT-7
TitleDo not use multiple operand types per operator.
PriorityStrongly recommended
Severity level5
DescriptionDo not use multiple operand types per operator. For example, do not mix logical and numerical operatonds with a multiplication operator.
RationaleMixing operand types per operator can cause unexpected results and may lead to errors in case of true incompatibilities.

Avoid:

d = a * b && c;

Instead use:

d = (a * b > 0) && c;