chiark
/
gitweb
/
~ian
/
sgt-puzzles.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
e841ab4
)
Small error in solver diagnostics.
author
Simon Tatham
<anakin@pobox.com>
Sat, 15 Oct 2005 15:01:40 +0000
(15:01 +0000)
committer
Simon Tatham
<anakin@pobox.com>
Sat, 15 Oct 2005 15:01:40 +0000
(15:01 +0000)
[originally from svn r6402]
tents.c
patch
|
blob
|
history
diff --git
a/tents.c
b/tents.c
index b29fb22599e659bd70cbe56133b86f51fe98d830..dc22467a3a2b25b41e3bdf743c3fc34c339da6d1 100644
(file)
--- a/
tents.c
+++ b/
tents.c
@@
-875,7
+875,7
@@
static int tents_solve(int w, int h, const char *grid, int *numbers,
printf("%s %d forces %s at %d,%d\n",
step==1 ? "row" : "column",
step==1 ? start/w : start,
- m
row
[j] == TENT ? "tent" : "non-tent",
+ m
this
[j] == TENT ? "tent" : "non-tent",
pos % w, pos / w);
#endif
soln[pos] = mthis[j];