From: simon 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: https://git.distorted.org.uk/~mdw/sgt/puzzles/commitdiff_plain/48d4740c8305b8a59a9fc067916582b4e44b465e Add a cast whose absence was causing a (-Werror-exacerbated) compile warning on OS X. git-svn-id: svn://svn.tartarus.org/sgt/puzzles@6037 cda61777-01e9-0310-a592-d414129be87e --- 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); \