chiark / gitweb /
Janes H provides a small workaround for a Palm tools bug.
authorSimon Tatham <anakin@pobox.com>
Sat, 15 Oct 2005 16:03:14 +0000 (16:03 +0000)
committerSimon Tatham <anakin@pobox.com>
Sat, 15 Oct 2005 16:03:14 +0000 (16:03 +0000)
[originally from svn r6403]

tents.c

diff --git a/tents.c b/tents.c
index dc22467a3a2b25b41e3bdf743c3fc34c339da6d1..7552b6b21e848e9679ed087e751fcf91037cc317 100644 (file)
--- a/tents.c
+++ b/tents.c
@@ -1573,8 +1573,8 @@ static char *interpret_move(game_state *state, game_ui *ui, game_drawstate *ds,
                 int v = drag_xform(ui, x, y, state->grid[y*w+x]);
                 if (state->grid[y*w+x] != v) {
                     tmplen = sprintf(tmpbuf, "%s%c%d,%d", sep,
-                                     (v == BLANK ? 'B' :
-                                      v == TENT ? 'T' : 'N'),
+                                     (int)(v == BLANK ? 'B' :
+                                           v == TENT ? 'T' : 'N'),
                                      x, y);
                     sep = ";";