]> git.ipfire.org Git - thirdparty/vim.git/commitdiff
patch 8.2.0891: clang warns for invalid conversion v8.2.0891
authorBram Moolenaar <Bram@vim.org>
Wed, 3 Jun 2020 08:04:49 +0000 (10:04 +0200)
committerBram Moolenaar <Bram@vim.org>
Wed, 3 Jun 2020 08:04:49 +0000 (10:04 +0200)
Problem:    Clang warns for invalid conversion.
Solution:   Use zero instead of INVALCOLOR.

src/highlight.c
src/version.c

index 852fffba9b0204af2639dfe5567458a19504aec9..9ce610293c2db45ed3ec0970a59f486b756c8c57 100644 (file)
@@ -2235,7 +2235,7 @@ get_cterm_attr_idx(int attr, int fg, int bg)
     at_en.ae_attr = attr;
     at_en.ae_u.cterm.fg_color = fg;
     at_en.ae_u.cterm.bg_color = bg;
-    at_en.ae_u.cterm.ul_color = INVALCOLOR;
+    at_en.ae_u.cterm.ul_color = 0;
     return get_attr_entry(&cterm_attr_table, &at_en);
 }
 #endif
index 986df70214af4739a40f0abd0770d8c6d6445ab7..b0fd4b3de8e55bf99ee6dce3f20d35923f19c03e 100644 (file)
@@ -746,6 +746,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    891,
 /**/
     890,
 /**/