Correct equality predicate usage and bitmask