quickfix.c: enable -Wconversion

This commit is contained in:
Charles Joachim
2016-02-28 00:50:12 -05:00
parent bb020df0f5
commit 662eea8287
4 changed files with 153 additions and 152 deletions

View File

@@ -1377,9 +1377,9 @@ char_u *make_filter_cmd(char_u *cmd, char_u *itmp, char_u *otmp)
}
}
#endif
if (otmp != NULL)
append_redir(buf, (int)len, p_srr, otmp);
if (otmp != NULL) {
append_redir(buf, len, p_srr, otmp);
}
return buf;
}
@@ -1390,7 +1390,7 @@ char_u *make_filter_cmd(char_u *cmd, char_u *itmp, char_u *otmp)
* The caller should make sure that there is enough room:
* STRLEN(opt) + STRLEN(fname) + 3
*/
void append_redir(char_u *buf, int buflen, char_u *opt, char_u *fname)
void append_redir(char_u *buf, size_t buflen, char_u *opt, char_u *fname)
{
char_u *p;
char_u *end;