# HG changeset patch # User Bram Moolenaar # Date 1639586704 -3600 # Node ID 5f4198087073ff6f4496a4aba599219c77e26c74 # Parent 09e19d3d78e378a05445cabdb0aa45cfdea9a21c 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 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) diff --git a/src/userfunc.c b/src/userfunc.c --- 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) { diff --git a/src/version.c b/src/version.c --- 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,