diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2014-11-27 21:02:30 -0500 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2014-11-27 21:02:30 -0500 |
commit | 68cee4c28d6c309e18ae35eeba9d5dffaf1078ca (patch) | |
tree | 3f129ff50c55b72fb182b45df4c44212a837171c /src/nvim/ex_cmds2.c | |
parent | 5e4809f5a4ba4d3cc6a6cdea5f7ac632c73086ab (diff) | |
parent | ce5d6506ba0d8241dbee94aceb56ea53a6bd1ed9 (diff) | |
download | rneovim-68cee4c28d6c309e18ae35eeba9d5dffaf1078ca.tar.gz rneovim-68cee4c28d6c309e18ae35eeba9d5dffaf1078ca.tar.bz2 rneovim-68cee4c28d6c309e18ae35eeba9d5dffaf1078ca.zip |
Merge pull request #1492 from fwalch/fix-wconversion
Fix some more -Wconversion warnings.
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) { |