fix precedence errors (#3611)

Fix a handful of precedence errors and 1 logic/precedence error.  None of the code will compile as intended without these changes.

Co-authored-by: SoftFever <softfeverever@gmail.com>
This commit is contained in:
foghatredbird
2024-01-15 06:35:08 -08:00
committed by GitHub
parent 23dd3c1f8b
commit e5b46575c9
4 changed files with 8 additions and 8 deletions

View File

@@ -71,7 +71,7 @@ void StateHandler::update_binds()
void StateHandler::set_state(int state, int mask)
{
if (states_ & mask == state & mask) return;
if ((states_ & mask) == (state & mask)) return;
int old = states_;
states_ = states_ & ~mask | state & mask;
if (old != states_ && (old | states2_) != (states_ | states2_)) {