shithub: puzzles

Download patch

ref: 5f16a29d4c5e90011aec7d9d00f02edf713a3304
parent: 3bee86241c60f5ad3df7e7cfb3f3c5a54f1552e0
author: Simon Tatham <anakin@pobox.com>
date: Sat Oct 15 12:03:14 EDT 2005

Janes H provides a small workaround for a Palm tools bug.

[originally from svn r6403]

--- a/tents.c
+++ b/tents.c
@@ -1573,8 +1573,8 @@
                 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 = ";";