Changed types and added casts so that build is clean with gcc -Wsign-compare.
[mmh] / uip / anno.c
index d03c99c..b1d8667 100644 (file)
@@ -429,7 +429,7 @@ annosbr(int fd, char *file, char *comp, char *text, int datesw, int delete,
        int length;
        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));