path.c: enable -Wconversion

This commit is contained in:
Charles Joachim
2016-03-12 10:19:51 -05:00
parent ae686092f8
commit 06b40d31c1
3 changed files with 107 additions and 131 deletions

View File

@@ -166,7 +166,7 @@ static bool is_executable_in_path(const char_u *name, char_u **abspath)
// Glue together the given directory from $PATH with name and save into
// buf.
STRLCPY(buf, path, e - path + 1);
append_path((char *) buf, (const char *) name, (int)buf_len);
append_path((char *) buf, (const char *) name, buf_len);
if (is_executable(buf)) {
// Check if the caller asked for a copy of the path.