1
0
forked from aniani/vim

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.
This commit is contained in:
Bram Moolenaar 2021-01-02 12:45:45 +01:00
parent edc10b541b
commit 38a434f7ba
2 changed files with 3 additions and 1 deletions

View File

@ -750,6 +750,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
2270,
/**/
2269,
/**/

View 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;