diff options
author | Bram Moolenaar <Bram@vim.org> | 2019-11-04 20:36:50 +0100 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2019-11-04 20:36:50 +0100 |
commit | 2ade714728ff824f67a9a24ef495d509a389ee2f (patch) | |
tree | 33d78af2717b6ba90227de9ac5bf3b93ef99c413 /src/filepath.c | |
parent | 197c6b7da3ad4c3e3942a553f5dbc35722a4a349 (diff) | |
download | vim-git-2ade714728ff824f67a9a24ef495d509a389ee2f.tar.gz |
patch 8.1.2252: compiler warning for int sizev8.1.2252
Problem: Compiler warning for int size.
Solution: Add type cast. (Mike Williams)
Diffstat (limited to 'src/filepath.c')
-rw-r--r-- | src/filepath.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/filepath.c b/src/filepath.c index 4ddeeaf45..8da6e1772 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -79,7 +79,7 @@ get_short_pathname(char_u **fnamep, char_u **bufp, int *fnamelen) vim_free(wfname); vim_free(newbuf); - *fnamelen = l == 0 ? l : STRLEN(*bufp); + *fnamelen = l == 0 ? l : (int)STRLEN(*bufp); return OK; } |