]> granicus.if.org Git - vim/commitdiff
patch 8.1.2252: compiler warning for int size v8.1.2252
authorBram Moolenaar <Bram@vim.org>
Mon, 4 Nov 2019 19:36:50 +0000 (20:36 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 4 Nov 2019 19:36:50 +0000 (20:36 +0100)
Problem:    Compiler warning for int size.
Solution:   Add type cast. (Mike Williams)

src/filepath.c
src/version.c

index 4ddeeaf45aed282e05c26d9c5624855830795e82..8da6e177290fa22ed2cffdaa9c89a1614e2294cf 100644 (file)
@@ -79,7 +79,7 @@ get_short_pathname(char_u **fnamep, char_u **bufp, int *fnamelen)
     vim_free(wfname);
     vim_free(newbuf);
 
-    *fnamelen = l == 0 ? l : STRLEN(*bufp);
+    *fnamelen = l == 0 ? l : (int)STRLEN(*bufp);
     return OK;
 }
 
index 767cbec8bd86f56ec043d0c1b7d8a7ec8426e56f..9b4c386a4b493c07601192e9b5ae7a6a1dec201c 100644 (file)
@@ -741,6 +741,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2252,
 /**/
     2251,
 /**/