summaryrefslogtreecommitdiffstats
path: root/src
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
parentee93e327ba31e8efb1b7de6209bdc992778b809b (diff)
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')
-rw-r--r--src/version.c2
-rw-r--r--src/vim9compile.c2
2 files changed, 3 insertions, 1 deletions
diff --git a/src/version.c b/src/version.c
index f849252122..ea776459e8 100644
--- a/src/version.c
+++ b/src/version.c
@@ -758,6 +758,8 @@ static char *(features[]) =
static int included_patches[] =
{ /* Add new patch number below this line */
/**/
+ 3655,
+/**/
3654,
/**/
3653,
diff --git a/src/vim9compile.c b/src/vim9compile.c
index 934f41b47a..fe692cbec6 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)
{