Wconversion: Fix warnings in file_search.c.

This commit is contained in:
Florian Walch
2014-11-18 20:43:25 +01:00
parent cfe4cada30
commit e3fca96e18
5 changed files with 28 additions and 28 deletions

View File

@@ -2116,7 +2116,8 @@ int do_in_runtimepath(char_u *name, int all, DoInRuntimepathCB callback,
np = name;
while (*np != NUL && (all || !did_one)) {
/* Append the pattern from "name" to buf[]. */
copy_option_part(&np, tail, (int)(MAXPATHL - (tail - buf)),
assert(MAXPATHL >= (tail - buf));
copy_option_part(&np, tail, (size_t)(MAXPATHL - (tail - buf)),
"\t ");
if (p_verbose > 2) {