From b7f2c7dd1d2a5753962c9276df3db8bc5d358b3e Mon Sep 17 00:00:00 2001 From: Anatolii Sakhnik Date: Sun, 9 Dec 2018 19:13:48 +0200 Subject: 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 --- src/nvim/diff.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src') 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) { -- cgit