diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-04-22 11:49:06 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-04-22 11:49:06 +0200 |
commit | 902647d2dfb42dce8449dfbbc22dab27a528744d (patch) | |
tree | dbac9acc233c18992006da8d05c717223ad4aef8 /src/syntax.c | |
parent | 380130f1e18da92a44372728fe044f56db58585b (diff) | |
download | vim-git-902647d2dfb42dce8449dfbbc22dab27a528744d.tar.gz |
patch 7.4.1774v7.4.1774
Problem: Cterm true color feature has warnings.
Solution: Add type casts.
Diffstat (limited to 'src/syntax.c')
-rw-r--r-- | src/syntax.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/syntax.c b/src/syntax.c index 9e2971e64..ea4e74c66 100644 --- a/src/syntax.c +++ b/src/syntax.c @@ -8788,9 +8788,9 @@ hl_combine_attr(int char_attr, int prim_attr) 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 } |