diff options
| author | Phil Bordelon <phil@thenexusproject.org> | 2017-06-04 23:48:56 -0400 |
|---|---|---|
| committer | Simon Tatham <anakin@pobox.com> | 2017-06-05 18:36:20 +0100 |
| commit | 272beef5f98fecc59c975ea920c601836a6bb08c (patch) | |
| tree | a230a370ffc5a9740b7aa5b92854e86a3af750fd | |
| parent | 7bdfda840962e0de7442c4f58d37ca1f560a5797 (diff) | |
| download | puzzles-272beef5f98fecc59c975ea920c601836a6bb08c.zip puzzles-272beef5f98fecc59c975ea920c601836a6bb08c.tar.gz puzzles-272beef5f98fecc59c975ea920c601836a6bb08c.tar.bz2 puzzles-272beef5f98fecc59c975ea920c601836a6bb08c.tar.xz | |
Make cellsize a char.
Apparently new versions of GCC get grumpy if the possible range for a sprintf()
call exceeds MAXINT, which would never happen in actuality here due to the size
of the puzzles we're dealing with... but the compiler doesn't know that, of
course, so thinks that something may have gone horribly awry. Changing it to a
char solves the problem neatly.
| -rw-r--r-- | range.c | 3 |
1 files changed, 2 insertions, 1 deletions
@@ -1159,7 +1159,8 @@ static int game_can_format_as_text_now(const game_params *params) static char *game_text_format(const game_state *state) { - int cellsize, r, c, i, w_string, h_string, n_string; + int r, c, i, w_string, h_string, n_string; + char cellsize; char *ret, *buf, *gridline; int const w = state->params.w, h = state->params.h; |