From: Mike Williams Date: Tue, 23 Nov 2021 12:35:57 +0000 (+0000) Subject: patch 8.2.3655: compiler warning for using size_t for int X-Git-Tag: v8.2.3655 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=cc9d725bbb515baf172c2be21de12d35a961e4ee;p=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) --- 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) {