From 04b82990aeec8ecad30f47617117c20c0dfb5e06 Mon Sep 17 00:00:00 2001 From: simon Date: Tue, 5 Jan 2010 18:26:42 +0000 Subject: [PATCH] Another 16-bit-cleanliness fix (and for once I spotted it before James!) git-svn-id: svn://svn.tartarus.org/sgt/puzzles@8806 cda61777-01e9-0310-a592-d414129be87e --- keen.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/keen.c b/keen.c index 6b4efb2..1c96a5d 100644 --- a/keen.c +++ b/keen.c @@ -1844,7 +1844,7 @@ static void draw_tile(drawing *dr, game_drawstate *ds, struct clues *clues, /* Count the pencil marks required. */ for (i = 1, npencil = 0; i <= w; i++) - if (tile & (1 << (i + DF_PENCIL_SHIFT))) + if (tile & (1L << (i + DF_PENCIL_SHIFT))) npencil++; if (npencil) { @@ -1914,7 +1914,7 @@ static void draw_tile(drawing *dr, game_drawstate *ds, struct clues *clues, * Now actually draw the pencil marks. */ for (i = 1, j = 0; i <= w; i++) - if (tile & (1 << (i + DF_PENCIL_SHIFT))) { + if (tile & (1L << (i + DF_PENCIL_SHIFT))) { int dx = j % pw, dy = j / pw; str[1] = '\0'; -- 2.11.0