changeset 23454:5e6a5ccf5dcb v8.2.2270

patch 8.2.2270: warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/38a434f7ba89ab2602019476219780e07fd8251f Author: Bram Moolenaar <Bram@vim.org> Date: Sat Jan 2 12:45:45 2021 +0100 patch 8.2.2270: warning for size_t to int conversion Problem: Warning for size_t to int conversion. (Randall W. Morris) Solution: Add a type cast.
author Bram Moolenaar <Bram@vim.org>
date Sat, 02 Jan 2021 13:00:05 +0100
parents b0ea0dd2298a
children 4277c9dbafb9
files src/version.c src/vim9execute.c
diffstat 2 files changed, 3 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/src/version.c
+++ b/src/version.c
@@ -751,6 +751,8 @@ static char *(features[]) =
 static int included_patches[] =
 {   /* Add new patch number below this line */
 /**/
+    2270,
+/**/
     2269,
 /**/
     2268,
--- a/src/vim9execute.c
+++ b/src/vim9execute.c
@@ -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;