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 <[email protected]>
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 <[email protected]>
    Signed-off-by: Christian Brabandt <[email protected]>

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,
 /**/

-- 
-- 
You received this message from the "vim_dev" maillist.
Do not top-post! Type your reply below the text you are replying to.
For more information, visit http://www.vim.org/maillist.php

--- 
You received this message because you are subscribed to the Google Groups 
"vim_dev" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
To view this discussion visit 
https://groups.google.com/d/msgid/vim_dev/E1w2FkG-008vFk-0u%40256bit.org.

Raspunde prin e-mail lui