Add a cast whose absence was causing a (-Werror-exacerbated) compile
authorsimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Jun 2005 16:32:53 +0000 (16:32 +0000)
committersimon <simon@cda61777-01e9-0310-a592-d414129be87e>
Wed, 29 Jun 2005 16:32:53 +0000 (16:32 +0000)
warning on OS X.

git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6037 cda61777-01e9-0310-a592-d414129be87e

midend.c

index e0e9cb0..15d11bb 100644 (file)
--- 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); \