]> granicus.if.org Git - vim/commitdiff
patch 8.2.0668: compiler warning for int/size_t usage v8.2.0668
authorBram Moolenaar <Bram@vim.org>
Thu, 30 Apr 2020 18:21:43 +0000 (20:21 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 30 Apr 2020 18:21:43 +0000 (20:21 +0200)
Problem:    Compiler warning for int/size_t usage.
Solution:   Change "int" to "size_t". (Mike Williams)

src/version.c
src/vim9execute.c

index c57ef87155993680ea47c717f25c44de3573328d..7382a3dbdf6e0a7aa941f06c9d49b904aacd28e8 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    668,
 /**/
     667,
 /**/
index 5251d4848619f98fb36f3556e5a0692980fc642b..3cb8628c55c1a23edfb4bea73d6bda5293b1cee5 100644 (file)
@@ -653,7 +653,7 @@ call_def_function(
            case ISN_EXECCONCAT:
                {
                    int     count = iptr->isn_arg.number;
-                   int     len = 0;
+                   size_t  len = 0;
                    int     pass;
                    int     i;
                    char_u  *cmd = NULL;