]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.0.1687: 64 bit compiler warnings v8.0.1687
authorBram Moolenaar <Bram@vim.org>
Tue, 10 Apr 2018 16:26:27 +0000 (18:26 +0200)
committerBram Moolenaar <Bram@vim.org>
Tue, 10 Apr 2018 16:26:27 +0000 (18:26 +0200)
Problem:    64 bit compiler warnings.
Solution:   change type, add type cast. (Mike Williams)

src/terminal.c
src/version.c

index 7859941380ae43d1dd88d76665c91decc1a14963..9a62edd67ba2177b2453d4ce2610a6db0256c804 100644 (file)
@@ -3400,7 +3400,7 @@ static VTermParserCallbacks parser_fallbacks = {
     static void *
 vterm_malloc(size_t size, void *data UNUSED)
 {
-    return alloc_clear(size);
+    return alloc_clear((unsigned) size);
 }
 
     static void
@@ -4016,9 +4016,9 @@ get_separator(int text_width, char_u *fname)
     int            fname_size;
     char_u  *p = fname;
     int            i;
-    int            off;
+    size_t  off;
 
-    textline = alloc(width + STRLEN(fname) + 1);
+    textline = alloc(width + (int)STRLEN(fname) + 1);
     if (textline == NULL)
        return NULL;
 
index 08b672892a4feba220769721cbfb7dc4f05a598e..4fc5de02255989243bb01a91d36d6a613f1252db 100644 (file)
@@ -762,6 +762,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1687,
 /**/
     1686,
 /**/