1
diff --git a/keen.c b/keen.c
2
index fe41496..bec5055 100644
5
@@ -1450,11 +1450,12 @@ static int check_errors(game_state *state, long *errors)
9
- int d1 = cluevals[j], d2 = state->grid[i];
10
- if (d1 == 0 || d2 == 0)
11
+ int d1 = min(cluevals[j], state->grid[i]);
12
+ int d2 = max(cluevals[j], state->grid[i]);
13
+ if (d1 == 0 || d2 % d1 != 0)
16
- cluevals[j] = d2/d1 + d1/d2;/* one of them is 0 :-) */
17
+ cluevals[j] = d2 / d1;