diff options
author | Mike Williams <mikew@globalgraphics.com> | 2021-11-23 12:35:57 +0000 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2021-11-23 12:35:57 +0000 |
commit | cc9d725bbb515baf172c2be21de12d35a961e4ee (patch) | |
tree | 02e9eb0074a691abb68f314d07dd7e1bee49f146 /src/vim9compile.c | |
parent | ee93e327ba31e8efb1b7de6209bdc992778b809b (diff) | |
download | vim-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.c | 2 |
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) { |