summaryrefslogtreecommitdiff
path: root/src/vim9compile.c
diff options
context:
space:
mode:
authorMike Williams <mikew@globalgraphics.com>2021-11-23 12:35:57 +0000
committerBram Moolenaar <Bram@vim.org>2021-11-23 12:35:57 +0000
commitcc9d725bbb515baf172c2be21de12d35a961e4ee (patch)
tree02e9eb0074a691abb68f314d07dd7e1bee49f146 /src/vim9compile.c
parentee93e327ba31e8efb1b7de6209bdc992778b809b (diff)
downloadvim-git-cc9d725bbb515baf172c2be21de12d35a961e4ee.tar.gz
patch 8.2.3655: compiler warning for using size_t for intv8.2.3655
Problem: Compiler warning for using size_t for int. Solution: Add a type cast. (Mike Williams, closes #9199)
Diffstat (limited to 'src/vim9compile.c')
-rw-r--r--src/vim9compile.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 934f41b47..fe692cbec 100644
--- a/src/vim9compile.c
+++ b/src/vim9compile.c
@@ -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)
{