0
0
mirror of https://github.com/vim/vim.git synced 2025-07-26 11:04:33 -04:00

patch 8.2.3655: compiler warning for using size_t for int

Problem:    Compiler warning for using size_t for int.
Solution:   Add a type cast. (Mike Williams, closes #9199)
This commit is contained in:
Mike Williams 2021-11-23 12:35:57 +00:00 committed by Bram Moolenaar
parent ee93e327ba
commit cc9d725bbb
2 changed files with 3 additions and 1 deletions

View File

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

View File

@ -8255,7 +8255,7 @@ compile_for(char_u *arg_start, cctx_T *cctx)
}
else
{
if (!valid_varname(arg, varlen, FALSE))
if (!valid_varname(arg, (int)varlen, FALSE))
goto failed;
if (lookup_local(arg, varlen, NULL, cctx) == OK)
{