]> granicus.if.org Git - vim/commitdiff
patch 8.1.0396: another compiler warning on 64-bit MS-Windows v8.1.0396
authorBram Moolenaar <Bram@vim.org>
Sun, 16 Sep 2018 13:14:18 +0000 (15:14 +0200)
committerBram Moolenaar <Bram@vim.org>
Sun, 16 Sep 2018 13:14:18 +0000 (15:14 +0200)
Problem:    Another compiler warning on 64-bit MS-Windows.
Solution:   Add type cast. (Mike Williams)

src/version.c
src/xdiff/xutils.c

index 7b6b07fc39e8d634a58e249258e9950f47d16f99..d207e945826f3f488d5b02a840e0c2968c78a265 100644 (file)
@@ -794,6 +794,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    396,
 /**/
     395,
 /**/
index 4ab6ca8fdc233b701a1b2e786ce211ed5ed89e94..25a090fb737b6a0c4081b03fe242d8810df433b5 100644 (file)
@@ -51,7 +51,7 @@ int xdl_emit_diffrec(char const *rec, long size, char const *pre, long psize,
        mb[1].size = size;
        if (size > 0 && rec[size - 1] != '\n') {
                mb[2].ptr = (char *) "\n\\ No newline at end of file\n";
-               mb[2].size = strlen(mb[2].ptr);
+               mb[2].size = (long)strlen(mb[2].ptr);
                i++;
        }
        if (ecb->outf(ecb->priv, mb, i) < 0) {