diff src/diff.c @ 14766:7a11facdf74b v8.1.0395

patch 8.1.0395: compiler warning on 64-bit MS-Windows commit https://github.com/vim/vim/commit/6e272acc82af900318017061f923e7f66dc7ee7a Author: Bram Moolenaar <Bram@vim.org> Date: Sun Sep 16 14:51:36 2018 +0200 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)
author Christian Brabandt <cb@256bit.org>
date Sun, 16 Sep 2018 15:00:07 +0200
parents f562b9fbd0d3
children 27055ad9276b
line wrap: on
line diff
--- a/src/diff.c
+++ b/src/diff.c
@@ -712,7 +712,7 @@ diff_write_buffer(buf_T *buf, diffin_T *
 
     // 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 = lalloc(len, TRUE);
     if (ptr == NULL)
     {