aboutsummaryrefslogtreecommitdiff
path: root/signpost.c
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2011-05-04 18:41:21 +0000
committerSimon Tatham <anakin@pobox.com>2011-05-04 18:41:21 +0000
commit89bfecaa5aa39469a3e368d44f517aff5c904354 (patch)
tree13c801bb71dc7dc7a23b98c80d6d99858dd5a6d3 /signpost.c
parente7b2a9dd8d8915802fb69ce2242b1f913b7f3172 (diff)
downloadpuzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.zip
puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.gz
puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.bz2
puzzles-89bfecaa5aa39469a3e368d44f517aff5c904354.tar.xz
Portability fixes, mostly from James for Palm purposes. Mostly
additions of missing 'static' and explicit 'void' in parameter lists, plus one or two other things like explicitly casting chars in variadic argument lists to int and using DBL_MAX if HUGE_VAL isn't available. [originally from svn r9166]
Diffstat (limited to 'signpost.c')
-rw-r--r--signpost.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/signpost.c b/signpost.c
index a9c38f5..fdeadba 100644
--- a/signpost.c
+++ b/signpost.c
@@ -1496,7 +1496,7 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
if (state->prev[si] == -1 && state->next[si] == -1)
return "";
sprintf(buf, "%c%d,%d",
- ui->drag_is_from ? 'C' : 'X', ui->sx, ui->sy);
+ (int)(ui->drag_is_from ? 'C' : 'X'), ui->sx, ui->sy);
return dupstr(buf);
}
@@ -1515,7 +1515,7 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
if (state->prev[si] == -1 && state->next[si] == -1)
return "";
sprintf(buf, "%c%d,%d",
- (button == 'x') ? 'C' : 'X', ui->cx, ui->cy);
+ (int)((button == 'x') ? 'C' : 'X'), ui->cx, ui->cy);
return dupstr(buf);
}