aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorSimon Tatham <anakin@pobox.com>2005-06-29 16:32:53 +0000
committerSimon Tatham <anakin@pobox.com>2005-06-29 16:32:53 +0000
commit0494e94c4ace69b89e46943c2ddc1f8d09c44c8c (patch)
tree64d104d0982f6e59c9a3749c8390e90094b4acc5
parent074f11edc42902d8f8f97736c78e20d6b99c3dc8 (diff)
downloadpuzzles-0494e94c4ace69b89e46943c2ddc1f8d09c44c8c.zip
puzzles-0494e94c4ace69b89e46943c2ddc1f8d09c44c8c.tar.gz
puzzles-0494e94c4ace69b89e46943c2ddc1f8d09c44c8c.tar.bz2
puzzles-0494e94c4ace69b89e46943c2ddc1f8d09c44c8c.tar.xz
Add a cast whose absence was causing a (-Werror-exacerbated) compile
warning on OS X. [originally from svn r6037]
-rw-r--r--midend.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/midend.c b/midend.c
index e0e9cb0..15d11bb 100644
--- a/midend.c
+++ b/midend.c
@@ -1084,7 +1084,7 @@ void midend_serialise(midend_data *me,
#define wr(h,s) do { \
char hbuf[80]; \
char *str = (s); \
- sprintf(hbuf, "%-8.8s:%d:", (h), strlen(str)); \
+ sprintf(hbuf, "%-8.8s:%d:", (h), (int)strlen(str)); \
write(wctx, hbuf, strlen(hbuf)); \
write(wctx, str, strlen(str)); \
write(wctx, "\n", 1); \