diff options
author | Anatolii Sakhnik <sakhnik@gmail.com> | 2018-12-09 19:13:48 +0200 |
---|---|---|
committer | Anatolii Sakhnik <sakhnik@gmail.com> | 2018-12-09 19:45:56 +0200 |
commit | b7f2c7dd1d2a5753962c9276df3db8bc5d358b3e (patch) | |
tree | 7bb4bbb6405e4a1d8b80eff3d00bf51b60a05bed /src/nvim/diff.c | |
parent | 7b6c92eac1b7aa702f734120bdd18b5a4f6cfe04 (diff) | |
download | rneovim-b7f2c7dd1d2a5753962c9276df3db8bc5d358b3e.tar.gz rneovim-b7f2c7dd1d2a5753962c9276df3db8bc5d358b3e.tar.bz2 rneovim-b7f2c7dd1d2a5753962c9276df3db8bc5d358b3e.zip |
vim-patch:8.1.0395: compiler warning on 64-bit MS-Windows
Problem: Compiler warning on 64-bit MS-Windows.
Solution: Add type cast. (Mike Williams)
https://github.com/vim/vim/commit/6e272acc82af900318017061f923e7f66dc7ee7a
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r-- | src/nvim/diff.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/nvim/diff.c b/src/nvim/diff.c index a927983374..bd66b32213 100644 --- a/src/nvim/diff.c +++ b/src/nvim/diff.c @@ -692,7 +692,7 @@ static int diff_write_buffer(buf_T *buf, diffin_T *din) // xdiff requires one big block of memory with all the text. for (lnum = 1; lnum <= buf->b_ml.ml_line_count; lnum++) { - len += STRLEN(ml_get_buf(buf, lnum, false)) + 1; + len += (long)STRLEN(ml_get_buf(buf, lnum, false)) + 1; } ptr = xmalloc(len); if (ptr == NULL) { |