chiark / gitweb /
Add a cast whose absence was causing a (-Werror-exacerbated) compile
authorSimon Tatham <anakin@pobox.com>
Wed, 29 Jun 2005 16:32:53 +0000 (16:32 +0000)
committerSimon Tatham <anakin@pobox.com>
Wed, 29 Jun 2005 16:32:53 +0000 (16:32 +0000)
warning on OS X.

[originally from svn r6037]

midend.c

index e0e9cb06348dee28c65fc1ea01ac37505006ec87..15d11bbda860eb8945a46292090dce7d0dc76a4a 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); \