From: Mike Williams Date: Wed, 15 Dec 2021 16:38:33 +0000 (+0000) Subject: patch 8.2.3816: compiler warning for posible loss of data on MS-Windows X-Git-Tag: v8.2.3816 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=1821d1498ca57dc3f7a21767c253a778d9b113fb;p=vim 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 #9349) --- diff --git a/src/userfunc.c b/src/userfunc.c index 0fca23afc..70a3c51bc 100644 --- a/src/userfunc.c +++ b/src/userfunc.c @@ -4194,7 +4194,7 @@ define_function(exarg_T *eap, char_u *name_arg) // 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 index 702913464..1b8368534 100644 --- a/src/version.c +++ b/src/version.c @@ -749,6 +749,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3816, /**/ 3815, /**/