From: simon Date: Mon, 4 Jan 2010 18:55:56 +0000 (+0000) Subject: 16-bit cleanliness patch from James H. X-Git-Url: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/450d3df02a3b955f8bbd52e57d400bde3b4e6801 16-bit cleanliness patch from James H. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8803 cda61777-01e9-0310-a592-d414129be87e --- diff --git a/keen.c b/keen.c index feee59c..6b4efb2 100644 --- 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++)