diff options
author | Justin M. Keyes <justinkz@gmail.com> | 2018-01-20 17:18:32 +0100 |
---|---|---|
committer | Justin M. Keyes <justinkz@gmail.com> | 2018-01-20 17:18:32 +0100 |
commit | 0daaa49586ff49584946cdf96549e1331f055103 (patch) | |
tree | adbf6bce58de5f8280ecf496728edd6f38bdfa58 /src/nvim/api/buffer.c | |
parent | ee84da358c27b9c0a6bbd49424bc9d04bb98d662 (diff) | |
parent | 10b1738f590fe08675173071b35fface324f4048 (diff) | |
download | rneovim-0daaa49586ff49584946cdf96549e1331f055103.tar.gz rneovim-0daaa49586ff49584946cdf96549e1331f055103.tar.bz2 rneovim-0daaa49586ff49584946cdf96549e1331f055103.zip |
Merge #7863 'mingw64: fix gcc warnings'
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); |