]> granicus.if.org Git - vim/commitdiff
patch 8.2.3655: compiler warning for using size_t for int v8.2.3655
authorMike Williams <mikew@globalgraphics.com>
Tue, 23 Nov 2021 12:35:57 +0000 (12:35 +0000)
committerBram Moolenaar <Bram@vim.org>
Tue, 23 Nov 2021 12:35:57 +0000 (12:35 +0000)
Problem:    Compiler warning for using size_t for int.
Solution:   Add a type cast. (Mike Williams, closes #9199)

src/version.c
src/vim9compile.c

index f84925212271c67458f02ce244b2f3fb6c661f83..ea776459e8b2aec34cb268063f72ac8964e43a33 100644 (file)
@@ -757,6 +757,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    3655,
 /**/
     3654,
 /**/
index 934f41b47af2f1290205f87b4784eaa23d25cda8..fe692cbec66c1be9103b332e0fffad3e5ace4397 100644 (file)
@@ -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)
                {