aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/os/env.c
diff options
context:
space:
mode:
authorwatiko <service@mail.watiko.net>2016-02-13 13:21:44 +0900
committerwatiko <service@mail.watiko.net>2016-02-21 22:06:39 +0900
commit6bbd149e9812161a736863f68400ff394e649b5e (patch)
tree3ac88414862b5d9c4ea16e1c4f6cb09451a7f5d5 /src/nvim/os/env.c
parent6ea1047585664608cb42e007ba87ad86109ae3f8 (diff)
downloadrneovim-6bbd149e9812161a736863f68400ff394e649b5e.tar.gz
rneovim-6bbd149e9812161a736863f68400ff394e649b5e.tar.bz2
rneovim-6bbd149e9812161a736863f68400ff394e649b5e.zip
vim-patch:7.4.845
Problem: Compiler warning for possible loss of data. Solution: Add a type cast. (Erich Ritz) https://github.com/vim/vim/commit/5df1ed2de3fa9dcace996b9a0a4c9b3cea79cf1e
Diffstat (limited to 'src/nvim/os/env.c')
-rw-r--r--src/nvim/os/env.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/os/env.c b/src/nvim/os/env.c
index ea0e992fe2..41ce8ddbc2 100644
--- a/src/nvim/os/env.c
+++ b/src/nvim/os/env.c
@@ -278,7 +278,7 @@ void expand_env_esc(char_u *srcp, char_u *dst, int dstlen, bool esc, bool one,
}
memcpy((char *)dst, (char *)var, len);
dst += len;
- dstlen -= len;
+ dstlen -= (int)len;
continue;
}
copy_char = true;