John Ralls c558b8530b Correct binary test logic for primary mask.
state & get_primary_mask(another) tested (state & (primary | other)),
which will be true if state matches *either* primary *or* other, but
what is wanted in a not-negated test is state matching all bits of
(primary | other). match_primary_mask does that.

On the other hand there are also cases of "not state & (primary | other)".
no_match_primary_mask handles that, returning true if state matches none
 of the bits in (primary | other).

Fixes #10646.
2018-07-22 18:50:06 +01:00
..
2018-07-21 19:11:06 +01:00
2017-05-11 17:25:14 +01:00
2015-04-03 13:28:54 +11:00
2018-05-20 15:49:27 -05:00