]> granicus.if.org Git - vim/commitdiff
patch 8.1.1235: compiler warnings for using STRLEN() value v8.1.1235
authorBram Moolenaar <Bram@vim.org>
Mon, 29 Apr 2019 17:47:22 +0000 (19:47 +0200)
committerBram Moolenaar <Bram@vim.org>
Mon, 29 Apr 2019 17:47:22 +0000 (19:47 +0200)
Problem:    Compiler warnings for using STRLEN() value.
Solution:   Cast to int. (Christian Brabandt, Mike Williams)

src/tag.c
src/version.c

index 5ab4eaab232739849eced2a0c39eb97d7a04f168..1242668a84bfce06ca0bd577786e45bcc67a9b24 100644 (file)
--- a/src/tag.c
+++ b/src/tag.c
@@ -1391,7 +1391,7 @@ find_tagfunc_tags(
            if (tv->v_type != VAR_STRING || tv->vval.v_string == NULL)
                continue;
 
-           len += STRLEN(tv->vval.v_string) + 1;   // Space for "\tVALUE"
+           len += (int)STRLEN(tv->vval.v_string) + 1;   // Space for "\tVALUE"
            if (!STRCMP(dict_key, "name"))
            {
                res_name = tv->vval.v_string;
@@ -1415,7 +1415,7 @@ find_tagfunc_tags(
            }
            // Other elements will be stored as "\tKEY:VALUE"
            // Allocate space for the key and the colon
-           len += STRLEN(dict_key) + 1;
+           len += (int)STRLEN(dict_key) + 1;
        }
 
        if (has_extra)
index c082c065cc2d2891362f2477a159c47da4a54ada..5cba4565534bb0598cd3656d218585bc732983fa 100644 (file)
@@ -767,6 +767,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    1235,
 /**/
     1234,
 /**/