]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0091: compiler warnings for size_t / int types v8.2.0091
authorBram Moolenaar <Bram@vim.org>
Mon, 6 Jan 2020 18:53:43 +0000 (19:53 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 6 Jan 2020 18:53:43 +0000 (19:53 +0100)
Problem:    Compiler warnings for size_t / int types.
Solution:   Change type to size_t. (Mike Williams)

src/scriptfile.c
src/version.c

index 783e6bc757568ffc4b2bec34c97c25914cff7910..38516c360a61d4212e4ba53d9d62d87c99a3635a 100644 (file)
@@ -97,10 +97,10 @@ estack_sfile(void)
 {
     estack_T   *entry;
 #ifdef FEAT_EVAL
-    int                len;
+    size_t     len;
     int                idx;
     char       *res;
-    int                done;
+    size_t     done;
 #endif
 
     entry = ((estack_T *)exestack.ga_data) + exestack.ga_len - 1;
@@ -126,7 +126,7 @@ estack_sfile(void)
        len += STRLEN(entry->es_name) + 15;
     }
 
-    res = (char *)alloc(len);
+    res = (char *)alloc((int)len);
     if (res != NULL)
     {
        STRCPY(res, "function ");
index 43300cbecce55095806af425275df69d453497d3..d235ae7a447126342d8d87dc500f26dacc3e0b2b 100644 (file)
@@ -742,6 +742,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    91,
 /**/
     90,
 /**/