changeset 26574:5f4198087073 v8.2.3816

patch 8.2.3816: compiler warning for posible loss of data on MS-Windows Commit: https://github.com/vim/vim/commit/1821d1498ca57dc3f7a21767c253a778d9b113fb Author: Mike Williams <mikew@globalgraphics.com> Date: Wed Dec 15 16:38:33 2021 +0000 patch 8.2.3816: compiler warning for posible loss of data on MS-Windows Problem: Compiler warning for posible loss of data on MS-Windows. Solution: Add type cast. (Mike Williams, closes https://github.com/vim/vim/issues/9349)
author Bram Moolenaar <Bram@vim.org>
date Wed, 15 Dec 2021 17:45:04 +0100
parents 09e19d3d78e3
children dfbdd4ea6937
files src/userfunc.c src/version.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/userfunc.c
+++ b/src/userfunc.c
@@ -4194,7 +4194,7 @@ define_function(exarg_T *eap, char_u *na
 	    // In Vim9 script a function cannot have the same name as a
 	    // variable.
 	    if (vim9script && *arg == K_SPECIAL
-		     && eval_variable(name_base, STRLEN(name_base), NULL, NULL,
+		&& eval_variable(name_base, (int)STRLEN(name_base), NULL, NULL,
 			 EVAL_VAR_NOAUTOLOAD + EVAL_VAR_IMPORT
 						     + EVAL_VAR_NO_FUNC) == OK)
 	    {
--- a/src/version.c
+++ b/src/version.c
@@ -750,6 +750,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    3816,
+/**/
     3815,
 /**/
     3814,