Mercurial > vim
diff src/syntax.c @ 8977:b3da1ec8d156 v7.4.1774
commit https://github.com/vim/vim/commit/902647d2dfb42dce8449dfbbc22dab27a528744d
Author: Bram Moolenaar <Bram@vim.org>
Date: Fri Apr 22 11:49:06 2016 +0200
patch 7.4.1774
Problem: Cterm true color feature has warnings.
Solution: Add type casts.
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Fri, 22 Apr 2016 12:00:07 +0200 |
parents | 9c097bfad637 |
children | 773d627cac0b |
line wrap: on
line diff
--- a/src/syntax.c +++ b/src/syntax.c @@ -8788,9 +8788,9 @@ hl_combine_attr(int char_attr, int prim_ if (spell_aep->ae_u.cterm.bg_color > 0) new_en.ae_u.cterm.bg_color = spell_aep->ae_u.cterm.bg_color; #ifdef FEAT_TERMTRUECOLOR - if (spell_aep->ae_u.cterm.fg_rgb != INVALCOLOR) + if (spell_aep->ae_u.cterm.fg_rgb != (long_u)INVALCOLOR) new_en.ae_u.cterm.fg_rgb = spell_aep->ae_u.cterm.fg_rgb; - if (spell_aep->ae_u.cterm.bg_rgb != INVALCOLOR) + if (spell_aep->ae_u.cterm.bg_rgb != (long_u)INVALCOLOR) new_en.ae_u.cterm.bg_rgb = spell_aep->ae_u.cterm.bg_rgb; #endif }