From e06d084735964575fc17e949b472b57d0ff4e19b Mon Sep 17 00:00:00 2001 From: ichizok Date: Mon, 16 Mar 2026 21:31:14 +0000 Subject: [PATCH] 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 Signed-off-by: Christian Brabandt --- src/strings.c | 2 +- src/version.c | 2 ++ 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/strings.c b/src/strings.c index 009285453f..37f52fe248 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 d8b677a37f..fe4fe69b2d 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, /**/