diff options
author | Florian Walch <florian@fwalch.com> | 2014-11-18 20:43:25 +0100 |
---|---|---|
committer | Florian Walch <florian@fwalch.com> | 2014-11-27 21:08:07 +0100 |
commit | e3fca96e1849b6646c9c91b4dfebf690284e037b (patch) | |
tree | 573a896a438f9d80ed3f051330a2e97926f33680 /src/nvim/ex_cmds2.c | |
parent | cfe4cada301ea30af75fe09f8da8039eca7336d3 (diff) | |
download | rneovim-e3fca96e1849b6646c9c91b4dfebf690284e037b.tar.gz rneovim-e3fca96e1849b6646c9c91b4dfebf690284e037b.tar.bz2 rneovim-e3fca96e1849b6646c9c91b4dfebf690284e037b.zip |
Wconversion: Fix warnings in file_search.c.
Diffstat (limited to 'src/nvim/ex_cmds2.c')
-rw-r--r-- | src/nvim/ex_cmds2.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/nvim/ex_cmds2.c b/src/nvim/ex_cmds2.c index 96410897df..24a1ccf85d 100644 --- a/src/nvim/ex_cmds2.c +++ b/src/nvim/ex_cmds2.c @@ -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) { |