]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.2270: warning for size_t to int conversion v8.2.2270
authorBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2021 11:45:45 +0000 (12:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Sat, 2 Jan 2021 11:45:45 +0000 (12:45 +0100)
Problem:    Warning for size_t to int conversion. (Randall W. Morris)
Solution:   Add a type cast.

src/version.c
src/vim9execute.c

index 25d464ba49fa4f6e6954156054d89768e3631378..c1e79864a670c93359be56a71a3b4a68eccc4f7f 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2270,
 /**/
     2269,
 /**/
index b389891df6d81f6a6671457bb2801c3a4b3d7df7..5721c0e723a788781d1573c7511c52be153b1477 100644 (file)
@@ -1526,7 +1526,7 @@ call_def_function(
                    if (GA_GROW(&ectx.ec_stack, 1) == FAIL)
                        goto failed;
                    SOURCING_LNUM = iptr->isn_lnum;
-                   if (eval_variable(name, STRLEN(name),
+                   if (eval_variable(name, (int)STRLEN(name),
                                  STACK_TV_BOT(0), NULL, TRUE, FALSE) == FAIL)
                        goto on_error;
                    ++ectx.ec_stack.ga_len;