From: Simon Tatham Date: Wed, 29 Jun 2005 16:32:53 +0000 (+0000) Subject: Add a cast whose absence was causing a (-Werror-exacerbated) compile X-Git-Url: http://www.chiark.greenend.org.uk/ucgi/~ian/git?a=commitdiff_plain;h=0494e94c4ace69b89e46943c2ddc1f8d09c44c8c;p=sgt-puzzles.git Add a cast whose absence was causing a (-Werror-exacerbated) compile warning on OS X. [originally from svn r6037] --- 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); \