diff options
| author | Simon Tatham <anakin@pobox.com> | 2005-08-11 11:06:13 +0000 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2005-08-11 11:06:13 +0000 |
| commit | 12def7ede2c9cee4f7a5ac37a60ee1a61cd5c24a (patch) | |
| tree | d77e3267a8452077faa9408e78cb3706bfe51e90 | |
| parent | 8da47177f37ff8859fec8a45193a749e61321c14 (diff) | |
| download | puzzles-12def7ede2c9cee4f7a5ac37a60ee1a61cd5c24a.zip puzzles-12def7ede2c9cee4f7a5ac37a60ee1a61cd5c24a.tar.gz puzzles-12def7ede2c9cee4f7a5ac37a60ee1a61cd5c24a.tar.bz2 puzzles-12def7ede2c9cee4f7a5ac37a60ee1a61cd5c24a.tar.xz | |
16-bit-cleanness fixes from James H (again). It would be really nice
to have some means of automatically spotting this sort of problem on
a desktop platform, but I can't immediately think of one; building a
trick compiler which thinks `int' is 16 bits would be the obvious
option, but it would immediately break the ABIs to all the system
functions.
[originally from svn r6184]
| -rw-r--r-- | slant.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -1661,7 +1661,7 @@ static void game_free_drawstate(game_drawstate *ds) } static void draw_clue(frontend *fe, game_drawstate *ds, - int x, int y, int v, int err) + int x, int y, long v, long err) { char p[2]; int ccol = ((x ^ y) & 1) ? COL_SLANT1 : COL_SLANT2; @@ -1678,7 +1678,7 @@ static void draw_clue(frontend *fe, game_drawstate *ds, } static void draw_tile(frontend *fe, game_drawstate *ds, game_clues *clues, - int x, int y, int v) + int x, int y, long v) { int w = clues->w, h = clues->h, W = w+1 /*, H = h+1 */; int chesscolour = (x ^ y) & 1; |