Mercurial > vim
comparison src/highlight.c @ 20675:02f648f1c8fa v8.2.0891
patch 8.2.0891: clang warns for invalid conversion
Commit: https://github.com/vim/vim/commit/cc836556d962058d8b8fbc45c400b7e9d643976a
Author: Bram Moolenaar <Bram@vim.org>
Date: Wed Jun 3 10:04:49 2020 +0200
patch 8.2.0891: clang warns for invalid conversion
Problem: Clang warns for invalid conversion.
Solution: Use zero instead of INVALCOLOR.
author | Bram Moolenaar <Bram@vim.org> |
---|---|
date | Wed, 03 Jun 2020 10:15:03 +0200 |
parents | 0ebd431a2256 |
children | 5481c982a279 |
comparison
equal
deleted
inserted
replaced
20674:7d47585c9c06 | 20675:02f648f1c8fa |
---|---|
2233 at_en.ae_u.cterm.ul_rgb = INVALCOLOR; | 2233 at_en.ae_u.cterm.ul_rgb = INVALCOLOR; |
2234 #endif | 2234 #endif |
2235 at_en.ae_attr = attr; | 2235 at_en.ae_attr = attr; |
2236 at_en.ae_u.cterm.fg_color = fg; | 2236 at_en.ae_u.cterm.fg_color = fg; |
2237 at_en.ae_u.cterm.bg_color = bg; | 2237 at_en.ae_u.cterm.bg_color = bg; |
2238 at_en.ae_u.cterm.ul_color = INVALCOLOR; | 2238 at_en.ae_u.cterm.ul_color = 0; |
2239 return get_attr_entry(&cterm_attr_table, &at_en); | 2239 return get_attr_entry(&cterm_attr_table, &at_en); |
2240 } | 2240 } |
2241 #endif | 2241 #endif |
2242 | 2242 |
2243 #if (defined(FEAT_TERMINAL) && defined(FEAT_TERMGUICOLORS)) || defined(PROTO) | 2243 #if (defined(FEAT_TERMINAL) && defined(FEAT_TERMGUICOLORS)) || defined(PROTO) |