diff options
author | George Zhao <zhaozg@gmail.com> | 2018-01-17 19:35:57 +0800 |
---|---|---|
committer | George Zhao <zhaozg@gmail.com> | 2018-01-18 21:30:03 +0800 |
commit | 06994e0e21eb5545aef7c2234f5d1a271865366e (patch) | |
tree | c0880efd3f0666035804dcf8c484ec06a628cd4e /src/nvim/api/buffer.c | |
parent | bc17ad31dccb446fc24e0f6bb3cb2149ce951ae5 (diff) | |
download | rneovim-06994e0e21eb5545aef7c2234f5d1a271865366e.tar.gz rneovim-06994e0e21eb5545aef7c2234f5d1a271865366e.tar.bz2 rneovim-06994e0e21eb5545aef7c2234f5d1a271865366e.zip |
Fix warning about conversion on mingw64
Diffstat (limited to 'src/nvim/api/buffer.c')
-rw-r--r-- | src/nvim/api/buffer.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/nvim/api/buffer.c b/src/nvim/api/buffer.c index 01dde9dd09..af723639c5 100644 --- a/src/nvim/api/buffer.c +++ b/src/nvim/api/buffer.c @@ -399,7 +399,11 @@ void nvim_buf_set_lines(uint64_t channel_id, // Only adjust marks if we managed to switch to a window that holds // the buffer, otherwise line numbers will be invalid. if (save_curbuf.br_buf == NULL) { - mark_adjust((linenr_T)start, (linenr_T)(end - 1), MAXLNUM, extra, false); + mark_adjust((linenr_T)start, + (linenr_T)(end - 1), + MAXLNUM, + (long)extra, + false); } changed_lines((linenr_T)start, 0, (linenr_T)end, (long)extra); |