]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 9.2.0179: MS-Windows: Compiler warning for converting from size_t to int v9.2.0179
authorichizok <gclient.gaap@gmail.com>
Mon, 16 Mar 2026 21:31:14 +0000 (21:31 +0000)
committerChristian Brabandt <cb@256bit.org>
Mon, 16 Mar 2026 21:31:14 +0000 (21:31 +0000)
Problem:  MS-Windows: Compile warning for converting from size_t to int
          breaks the Appveyor CI (after v9.2.0168)
Solution: Explicitly cast to int in convert_string() (ichizok).

closes: #19722

Signed-off-by: ichizok <gclient.gaap@gmail.com>
Signed-off-by: Christian Brabandt <cb@256bit.org>
src/strings.c
src/version.c

index 009285453f3861f6b7a47c88f43d2c4e546c2762..37f52fe2485f5239aaffb5d780e267ee91ebeb3b 100644 (file)
@@ -1218,7 +1218,7 @@ convert_string(string_T *str, char_u *from, char_u *to, string_T *ret)
     }
     else
     {
-       int len = str->length;
+       int len = (int)str->length;
        ret->string = string_convert(&vimconv, str->string, &len);
        ret->length = len;
     }
index d8b677a37f1663bb50ee3113f63cdcb53e68ae5b..fe4fe69b2d7ca5e181ef2ae9395ed13c6efd782a 100644 (file)
@@ -734,6 +734,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    179,
 /**/
     178,
 /**/