]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.1.0395: compiler warning on 64-bit MS-Windows v8.1.0395
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Sep 2018 12:51:36 +0000 (14:51 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Sep 2018 12:51:36 +0000 (14:51 +0200)
Problem:    Compiler warning on 64-bit MS-Windows.
Solution:   Add type cast. (Mike Williams)

src/diff.c
src/version.c

index 69ba7a3893b3cf0a4fe00330c23ec4abc624329a..02f1c332560ce3ba366e9edc0a641bb8fa8bdd81 100644 (file)
@@ -712,7 +712,7 @@ 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 = lalloc(len, TRUE);
     if (ptr == NULL)
     {
index 29557cdf65fd6f9f861b94a4f1245c37084f28ac..7b6b07fc39e8d634a58e249258e9950f47d16f99 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    395,
 /**/
     394,
 /**/