]> granicus.if.org Git - vim/commitdiff
patch 9.0.0054: compiler warning for size_t to int conversion v9.0.0054
authorBram Moolenaar <Bram@vim.org>
Fri, 15 Jul 2022 19:45:20 +0000 (20:45 +0100)
committerBram Moolenaar <Bram@vim.org>
Fri, 15 Jul 2022 19:45:20 +0000 (20:45 +0100)
Problem:    Compiler warning for size_t to int conversion.
Solution:   Add type cast. (Mike Williams, closes #10741)

src/insexpand.c
src/version.c

index 9c598a89f73dc2bf0965399182033be9107cf94f..b49a631a6b4f61171b719ec612454456dfb364ba 100644 (file)
@@ -643,7 +643,7 @@ ins_compl_infercase_gettext(
            if (ga_grow(&gap, IOSIZE) == FAIL)
                return (char_u *)"[failed]";
            STRCPY(gap.ga_data, IObuff);
-           gap.ga_len = STRLEN(IObuff);
+           gap.ga_len = (int)STRLEN(IObuff);
        }
        else if (has_mbyte)
            p += (*mb_char2bytes)(wca[i++], p);
index 9e7a9885c4da5813a83c7238e80d41e7de0660a8..8ea00e28390fd76141772f9736388bbb5e2e68f3 100644 (file)
@@ -735,6 +735,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    54,
 /**/
     53,
 /**/