From 38a434f7ba89ab2602019476219780e07fd8251f Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Sat, 2 Jan 2021 12:45:45 +0100 Subject: [PATCH] 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. --- src/version.c | 2 ++ src/vim9execute.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index 25d464ba49..c1e79864a6 100644 --- 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 */ +/**/ + 2270, /**/ 2269, /**/ diff --git a/src/vim9execute.c b/src/vim9execute.c index b389891df6..5721c0e723 100644 --- 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;