shithub: puzzles

Download patch

ref: 0494e94c4ace69b89e46943c2ddc1f8d09c44c8c
parent: 074f11edc42902d8f8f97736c78e20d6b99c3dc8
author: Simon Tatham <anakin@pobox.com>
date: Wed Jun 29 12:32:53 EDT 2005

Add a cast whose absence was causing a (-Werror-exacerbated) compile
warning on OS X.

[originally from svn r6037]

--- a/midend.c
+++ b/midend.c
@@ -1084,7 +1084,7 @@
 #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); \