16-bit cleanliness patch from James H.
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 4 Jan 2010 18:55:56 +0000 (18:55 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Mon, 4 Jan 2010 18:55:56 +0000 (18:55 +0000)
git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8803 cda61777-01e9-0310-a592-d414129be87e

keen.c

diff --git a/keen.c b/keen.c
index feee59c..6b4efb2 100644 (file)
--- a/keen.c
+++ b/keen.c
@@ -281,8 +281,8 @@ static int solver_common(struct latin_solver *solver, void *vctx, int diff)
     for (box = 0; box < ctx->nboxes; box++) {
        int *sq = ctx->boxlist + ctx->boxes[box];
        int n = ctx->boxes[box+1] - ctx->boxes[box];
-       int value = ctx->clues[box] & ~CMASK;
-       int op = ctx->clues[box] & CMASK;
+       long value = ctx->clues[box] & ~CMASK;
+       long op = ctx->clues[box] & CMASK;
 
        if (diff == DIFF_HARD) {
            for (i = 0; i < n; i++)