From 6f745fb1eef3e1792321e9b893574c8b147b6bff Mon Sep 17 00:00:00 2001 From: simon Date: Fri, 28 Nov 2008 19:33:40 +0000 Subject: [PATCH] Fix parenthesis problem in Light Up solver. Should fix Debian bug #505359. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8342 cda61777-01e9-0310-a592-d414129be87e --- lightup.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/lightup.c b/lightup.c index d9fa079..ceda07f 100644 --- a/lightup.c +++ b/lightup.c @@ -1016,9 +1016,9 @@ static void try_rule_out(game_state *state, int x, int y, get_surrounds(state, x, y, &s); for (i = 0; i < s.npoints; i++) { - if (!GRID(state,flags,s.points[i].x,s.points[i].y) & F_NUMBERED) + if (!(GRID(state,flags,s.points[i].x,s.points[i].y) & F_NUMBERED)) continue; - /* we have an adjacent clue square; find /it's/ surrounds + /* we have an adjacent clue square; find /its/ surrounds * and count the remaining lights it needs. */ get_surrounds(state,s.points[i].x,s.points[i].y,&ss); curr_lights = 0; -- 2.11.0