X-Git-Url: http://git.marmaro.de/?a=blobdiff_plain;f=uip%2Fannosbr.c;h=5b9fff42dc45c58b4b8dc704b7f42558308122cf;hb=2667af48dccbcb9e25709dea50451dd58d40aeae;hp=87e9580b423f896d42264a431816174c4b7161e0;hpb=5dd6771b28c257af405d7248639ed0e3bcdce38b;p=mmh diff --git a/uip/annosbr.c b/uip/annosbr.c index 87e9580..5b9fff4 100644 --- a/uip/annosbr.c +++ b/uip/annosbr.c @@ -183,7 +183,7 @@ annosbr (int fd, char *file, char *comp, char *text, int inplace, int datesw, in int length; /* length of field name */ int n; /* number of bytes written */ - mode = fstat (fd, &st) != NOTOK ? (st.st_mode & 0777) : m_gmprot (); + mode = fstat (fd, &st) != NOTOK ? (int) (st.st_mode & 0777) : m_gmprot (); strncpy (tmpfil, m_mktemp2(file, "annotate", NULL, &tmp), sizeof(tmpfil)); chmod (tmpfil, mode);