diff options
| author | Simon Tatham <anakin@pobox.com> | 2010-01-05 18:26:42 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2010-01-05 18:26:42 +0000 |
| commit | c3c186d687b5e48e058cb5b2e832e48530caf8e5 (patch) | |
| tree | 6e1ee490b5a1b7c7ad2a2d4b861c40e13ff90776 /keen.c | |
| parent | 4dfd8512ab278dd9f68475ace818b29e7e7c17af (diff) | |
| download | puzzles-c3c186d687b5e48e058cb5b2e832e48530caf8e5.zip puzzles-c3c186d687b5e48e058cb5b2e832e48530caf8e5.tar.gz puzzles-c3c186d687b5e48e058cb5b2e832e48530caf8e5.tar.bz2 puzzles-c3c186d687b5e48e058cb5b2e832e48530caf8e5.tar.xz | |
Another 16-bit-cleanliness fix (and for once I spotted it before James!)
[originally from svn r8806]
Diffstat (limited to 'keen.c')
| -rw-r--r-- | keen.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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'; |