shithub: puzzles

Download patch

ref: fe11a86a7e4c7a0f968bb7efb31cdd1e99c58eae
parent: 82d772e12a0abd7469c65c5891c447023b5c9756
author: Jacob Nevins <jacobn@chiark.greenend.org.uk>
date: Tue Jul 30 16:18:14 EDT 2013

Fix a failure to warn about non-unique rows/columns in non-square Unruly grids, reported in Debian bug #718354.

[originally from svn r9976]

--- a/unruly.c
+++ b/unruly.c
@@ -1012,7 +1012,7 @@
         for (c = 0; c < nc; c++)
             if (state->grid[r*rmult + c*cmult] != EMPTY)
                 nfull++;
-        if (nfull != nr)
+        if (nfull != nc)
             continue;
         for (r2 = r+1; r2 < nr; r2++) {
             int match = TRUE;