]> granicus.if.org Git - vim/commitdiff
patch 8.2.3816: compiler warning for posible loss of data on MS-Windows v8.2.3816
authorMike Williams <mikew@globalgraphics.com>
Wed, 15 Dec 2021 16:38:33 +0000 (16:38 +0000)
committerBram Moolenaar <Bram@vim.org>
Wed, 15 Dec 2021 16:38:33 +0000 (16:38 +0000)
Problem:    Compiler warning for posible loss of data on MS-Windows.
Solution:   Add type cast. (Mike Williams, closes #9349)

src/userfunc.c
src/version.c

index 0fca23afcef620380234a0df93ae467b9c63f421..70a3c51bca9878dffa6fb403af975ea6fa1501a6 100644 (file)
@@ -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)
            {
index 702913464c02076704bb8048bb40235228fd96fa..1b8368534d547896deedc3dc8df139e5dce8893c 100644 (file)
@@ -749,6 +749,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3816,
 /**/
     3815,
 /**/