Add a cast whose absence was causing a (-Werror-exacerbated) compile

warning on OS X.

[originally from svn r6037]
This commit is contained in:
Simon Tatham
2005-06-29 16:32:53 +00:00
parent 074f11edc4
commit 0494e94c4a

View File

@ -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); \