patch 9.2.0179: MS-Windows: Compiler warning for converting from size_t to int
Commit:
https://github.com/vim/vim/commit/e06d084735964575fc17e949b472b57d0ff4e19b
Author: ichizok <
gclien...@gmail.com>
Date: Mon Mar 16 21:31:14 2026 +0000
patch 9.2.0179: MS-Windows: Compiler warning for converting from size_t to int
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 <
gclien...@gmail.com>
Signed-off-by: Christian Brabandt <
c...@256bit.org>
diff --git a/src/strings.c b/src/strings.c
index 009285453..37f52fe24 100644
--- a/src/strings.c
+++ b/src/strings.c
@@ -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;
}
diff --git a/src/version.c b/src/version.c
index d8b677a37..fe4fe69b2 100644
--- a/src/version.c
+++ b/src/version.c
@@ -734,6 +734,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
+/**/
+ 179,
/**/
178,
/**/