# HG changeset patch # User Bram Moolenaar # Date 1609588805 -3600 # Node ID 5e6a5ccf5dcb7b9f675f045856b00fb19e5e44bb # Parent b0ea0dd2298a3f45ce1bcf9fccc0f67a7ddaff64 patch 8.2.2270: warning for size_t to int conversion Commit: https://github.com/vim/vim/commit/38a434f7ba89ab2602019476219780e07fd8251f Author: Bram Moolenaar 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. diff --git a/src/version.c b/src/version.c --- 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, diff --git a/src/vim9execute.c b/src/vim9execute.c --- 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;