From b95812963a8d187526145f5e1a9693f10eee2b65 Mon Sep 17 00:00:00 2001 From: Khem Raj Date: Tue, 6 Dec 2016 01:22:00 +0000 Subject: Clarify conditions to avoid compiler errors Fix errors pointed out by clang error: logical not is only applied to the left hand side of this bitwise operator [-Werror,-Wlogical-not-parentheses] | if (only_immutable && !copy->flags[i] & FLAG_IMMUTABLE) continue; | ^ Signed-off-by: Khem Raj --- tracks.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'tracks.c') diff --git a/tracks.c b/tracks.c index 5b27350..ca44ce1 100644 --- a/tracks.c +++ b/tracks.c @@ -1072,7 +1072,7 @@ static int solve_check_single_sub(game_state *state, int si, int id, int n, x = i%w; y = i/w; if (abs(ox-x) > 1 || abs(oy-y) > 1) { - if (!state->sflags[i] & S_TRACK) + if (!(state->sflags[i] & S_TRACK)) did += solve_set_sflag(state, x, y, S_NOTRACK, what); } } -- cgit v1.1