From: Christian Brabandt Date: Wed, 17 Dec 2025 20:52:01 +0000 (+0100) Subject: patch 9.1.1993: MS-Windows: compile error because of implicit type conversions X-Git-Tag: v9.1.1993^0 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=59a16f75b54f2c6be1548243d12b99eaa090231c;p=thirdparty%2Fvim.git 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 --- diff --git a/src/scriptfile.c b/src/scriptfile.c index b98c4e2952..008818e023 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 "." 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, "%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 : do not add the line number, it is used in // . 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 80384a0fb1..ac93ebec0e 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, /**/