forked from aniani/vim
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:
committed by
Bram Moolenaar
parent
ee93e327ba
commit
cc9d725bbb
@@ -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)
|
||||
{
|
||||
|
Reference in New Issue
Block a user