patch 9.1.1993: MS-Windows: compile error because of implicit type conversions

Commit: 
https://github.com/vim/vim/commit/59a16f75b54f2c6be1548243d12b99eaa090231c
Author: Christian Brabandt <[email protected]>
Date:   Wed Dec 17 21:52:01 2025 +0100

    patch 9.1.1993: MS-Windows: compile error because of implicit type 
conversions
    
    Problem:  MS-Windows: compile error because of implicit size conversions
              (after v9.1.1983)
    Solution: Change type casts
    
    closes: #18946
    
    Signed-off-by: Christian Brabandt <[email protected]>

diff --git a/src/scriptfile.c b/src/scriptfile.c
index b98c4e295..008818e02 100644
--- a/src/scriptfile.c
+++ b/src/scriptfile.c
@@ -189,6 +189,7 @@ estack_sfile(estack_arg_T which UNUSED)
        if (entry->es_name != NULL)
        {
            long        lnum = 0;
+           size_t      added = 0;
            string_T    type_name = {(char_u *)"", 0};
            string_T    class_name = {(char_u *)"", 0};
            string_T    es_name = {entry->es_name, STRLEN(entry->es_name)};
@@ -226,21 +227,29 @@ estack_sfile(estack_arg_T which UNUSED)
            ga_concat_len(&ga, type_name.string, type_name.length);
            // For class methods prepend "<class name>." to the function name.
            if (*class_name.string != NUL)
-               ga.ga_len += (int)vim_snprintf_safelen(
+           {
+               added = vim_snprintf_safelen(
                    (char *)ga.ga_data + ga.ga_len,
                    len - (size_t)ga.ga_len,
                    "<SNR>%d_%s.",
                    entry->es_info.ufunc->uf_script_ctx.sc_sid,
                    class_name.string);
+
+               ga.ga_len += (int)added;
+           }
            ga_concat_len(&ga, es_name.string, es_name.length);
            // For the bottom entry of <sfile>: do not add the line number, it 
is used in
            // <slnum>.  Also leave it out when the number is not set.
            if (lnum != 0)
-               ga.ga_len += (int)vim_snprintf_safelen(
+           {
+               added = vim_snprintf_safelen(
                    (char *)ga.ga_data + ga.ga_len,
                    len - (size_t)ga.ga_len,
                    "[%ld]",
                    lnum);
+
+               ga.ga_len += (int)added;
+           }
            if (idx != exestack.ga_len - 1)
                ga_concat_len(&ga, (char_u *)"..", 2);
        }
diff --git a/src/version.c b/src/version.c
index 80384a0fb..ac93ebec0 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 */
+/**/
+    1993,
 /**/
     1992,
 /**/

-- 
-- 
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/E1vVycv-002cgs-TL%40256bit.org.

Raspunde prin e-mail lui