From 2ade714728ff824f67a9a24ef495d509a389ee2f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 4 Nov 2019 20:36:50 +0100 Subject: [PATCH] patch 8.1.2252: compiler warning for int size Problem: Compiler warning for int size. Solution: Add type cast. (Mike Williams) --- src/filepath.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/filepath.c b/src/filepath.c index 4ddeeaf45a..8da6e17729 100644 --- a/src/filepath.c +++ b/src/filepath.c @@ -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; } diff --git a/src/version.c b/src/version.c index 767cbec8bd..9b4c386a4b 100644 --- a/src/version.c +++ b/src/version.c @@ -741,6 +741,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 2252, /**/ 2251, /**/