# HG changeset patch # User Bram Moolenaar # Date 1637671503 -3600 # Node ID 36361f080ffdcb612ffba0997e7247e926e480d1 # Parent 6c9af12fbb1796f71484faef4e2b11b76fa92b53 patch 8.2.3655: compiler warning for using size_t for int Commit: https://github.com/vim/vim/commit/cc9d725bbb515baf172c2be21de12d35a961e4ee Author: Mike Williams Date: Tue Nov 23 12:35:57 2021 +0000 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 https://github.com/vim/vim/issues/9199) diff --git a/src/version.c b/src/version.c --- 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 --- a/src/vim9compile.c +++ b/src/vim9compile.c @@ -8255,7 +8255,7 @@ compile_for(char_u *arg_start, cctx_T *c } else { - if (!valid_varname(arg, varlen, FALSE)) + if (!valid_varname(arg, (int)varlen, FALSE)) goto failed; if (lookup_local(arg, varlen, NULL, cctx) == OK) {