Inspectopedia
 
2024.3

Incompatible bitwise mask operation

Warning
New
Last modified: 03 December 2024

Reports a bitwise mask expression which for sure evaluates to true or false. Expressions are of the form (var & constant1) == constant2 or (var | constant1) == constant2, where constant1 and constant2 are incompatible bitmask constants.

Example: