changeset 18516:9676dc5fd705 v8.1.2252

patch 8.1.2252: compiler warning for int size Commit: https://github.com/vim/vim/commit/2ade714728ff824f67a9a24ef495d509a389ee2f Author: Bram Moolenaar <Bram@vim.org> Date: Mon Nov 4 20:36:50 2019 +0100 patch 8.1.2252: compiler warning for int size Problem: Compiler warning for int size. Solution: Add type cast. (Mike Williams)
author Bram Moolenaar <Bram@vim.org>
date Mon, 04 Nov 2019 20:45:04 +0100
parents 66bf9aca6412
children 7ca13352c0dd
files src/filepath.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/filepath.c
+++ b/src/filepath.c
@@ -79,7 +79,7 @@ get_short_pathname(char_u **fnamep, char
     vim_free(wfname);
     vim_free(newbuf);
 
-    *fnamelen = l == 0 ? l : STRLEN(*bufp);
+    *fnamelen = l == 0 ? l : (int)STRLEN(*bufp);
     return OK;
 }
 
--- a/src/version.c
+++ b/src/version.c
@@ -742,6 +742,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2252,
+/**/
     2251,
 /**/
     2250,