summaryrefslogtreecommitdiff
path: root/apps/plugins/puzzles/unequal.c
diff options
context:
space:
mode:
Diffstat (limited to 'apps/plugins/puzzles/unequal.c')
-rw-r--r--apps/plugins/puzzles/unequal.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/apps/plugins/puzzles/unequal.c b/apps/plugins/puzzles/unequal.c
index 457965b4ff..1293de28e8 100644
--- a/apps/plugins/puzzles/unequal.c
+++ b/apps/plugins/puzzles/unequal.c
@@ -1214,7 +1214,7 @@ static game_state *load_game(const game_params *params, const char *desc,
1214 why = "Too much data to fill grid"; goto fail; 1214 why = "Too much data to fill grid"; goto fail;
1215 } 1215 }
1216 1216
1217 if (*p < '0' && *p > '9') { 1217 if (*p < '0' || *p > '9') {
1218 why = "Expecting number in game description"; goto fail; 1218 why = "Expecting number in game description"; goto fail;
1219 } 1219 }
1220 n = atoi(p); 1220 n = atoi(p);