chiark / gitweb /
16-bit cleanliness patch from James H.
authorSimon Tatham <anakin@pobox.com>
Mon, 4 Jan 2010 18:55:56 +0000 (18:55 +0000)
committerSimon Tatham <anakin@pobox.com>
Mon, 4 Jan 2010 18:55:56 +0000 (18:55 +0000)
[originally from svn r8803]

keen.c

diff --git a/keen.c b/keen.c
index feee59c5cc3c40e4379b38bdc5ba6116c49a556a..6b4efb2509129ef2b795692cf122c8301b3c31d9 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++)