aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/diff.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/nvim/diff.c')
-rw-r--r--src/nvim/diff.c2
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) {