changeset 29425:722a50132db9 v9.0.0054

patch 9.0.0054: compiler warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/c7bd2f08e531f08723cdc677212a3633d11c9a97 Author: Bram Moolenaar <Bram@vim.org> Date: Fri Jul 15 20:45:20 2022 +0100 patch 9.0.0054: compiler warning for size_t to int conversion Problem: Compiler warning for size_t to int conversion. Solution: Add type cast. (Mike Williams, closes https://github.com/vim/vim/issues/10741)
author Bram Moolenaar <Bram@vim.org>
date Fri, 15 Jul 2022 22:00:06 +0200
parents 8cef2a0f3454
children da62efc02e4f
files src/insexpand.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/insexpand.c
+++ b/src/insexpand.c
@@ -643,7 +643,7 @@ ins_compl_infercase_gettext(
 	    if (ga_grow(&gap, IOSIZE) == FAIL)
 		return (char_u *)"[failed]";
 	    STRCPY(gap.ga_data, IObuff);
-	    gap.ga_len = STRLEN(IObuff);
+	    gap.ga_len = (int)STRLEN(IObuff);
 	}
 	else if (has_mbyte)
 	    p += (*mb_char2bytes)(wca[i++], p);
--- a/src/version.c
+++ b/src/version.c
@@ -736,6 +736,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    54,
+/**/
     53,
 /**/
     52,