]> granicus.if.org Git - vim/commitdiff
patch 8.2.2577: compiler warning for type conversion v8.2.2577
authorBram Moolenaar <Bram@vim.org>
Mon, 8 Mar 2021 18:04:05 +0000 (19:04 +0100)
committerBram Moolenaar <Bram@vim.org>
Mon, 8 Mar 2021 18:04:05 +0000 (19:04 +0100)
Problem:    Compiler warning for type conversion.
Solution:   Add a typecast. (Mike Williams)

src/drawline.c
src/version.c

index 03a229eaecfe611cd22d86b2134faa02097b9899..fcb996b4b90fdaa9a03b46f6f21834e0d45d7193 100644 (file)
@@ -1034,7 +1034,7 @@ win_line(
                    p_extra_free = alloc(MAX_MCO * fdc + 1);
                    if (p_extra_free != NULL)
                    {
-                       n_extra = fill_foldcolumn(p_extra_free, wp,
+                       n_extra = (int)fill_foldcolumn(p_extra_free, wp,
                                                                  FALSE, lnum);
                        p_extra_free[n_extra] = NUL;
                        p_extra = p_extra_free;
index 5cbf287705cf82c17b29f32279d3650405d4e1ec..f7c2171de6a3f79408e8010e38641978f51b493b 100644 (file)
@@ -750,6 +750,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2577,
 /**/
     2576,
 /**/