From cc9d725bbb515baf172c2be21de12d35a961e4ee Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Tue, 23 Nov 2021 12:35:57 +0000 Subject: [PATCH] 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) --- src/version.c | 2 ++ src/vim9compile.c | 2 +- 2 files changed, 3 insertions(+), 1 deletion(-) diff --git a/src/version.c b/src/version.c index f84925212..ea776459e 100644 --- a/src/version.c +++ b/src/version.c @@ -757,6 +757,8 @@ static char *(features[]) = static int included_patches[] = { /* Add new patch number below this line */ +/**/ + 3655, /**/ 3654, /**/ 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) { -- 2.50.1