aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--mines.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/mines.c b/mines.c
index 5023faa..a6562f6 100644
--- a/mines.c
+++ b/mines.c
@@ -1086,7 +1086,7 @@ static int minesolve(int w, int h, int n, signed char *grid,
* next. Backtrack cursor to the nearest 1,
* change it to a 0 and continue.
*/
- while (cursor-- >= 0 && !setused[cursor]);
+ while (--cursor >= 0 && !setused[cursor]);
if (cursor >= 0) {
assert(setused[cursor]);