diff options
author | Bram Moolenaar <Bram@vim.org> | 2016-08-22 23:04:33 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2016-08-22 23:04:33 +0200 |
commit | 1b58cdd160c2e0ada0f638679a2aa27e4665fc48 (patch) | |
tree | 5a88e5a7aec9e04bc428c6a9e468cb2fc7ae2edb /src/structs.h | |
parent | 17f1347b867cbcc0ce380bf9a2466b4c31896f04 (diff) | |
download | vim-1b58cdd160c2e0ada0f638679a2aa27e4665fc48.zip |
patch 7.4.2243
Problem: Warning for assigning negative value to unsigned. (Danek Duvall)
Solution: Make cterm_normal_fg_gui_color and _bg_ guicolor_T, cast to long_u
only when an unsigned is needed.
Diffstat (limited to 'src/structs.h')
-rw-r--r-- | src/structs.h | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h index 4488bf860..f91844277 100644 --- a/src/structs.h +++ b/src/structs.h @@ -92,8 +92,7 @@ typedef struct { # ifdef FEAT_XCLIPBOARD # include <X11/Intrinsic.h> # endif -# define guicolor_T long_u /* avoid error in prototypes and - * make FEAT_TERMGUICOLORS work */ +# define guicolor_T long # define INVALCOLOR ((guicolor_T)0x1ffffff) #endif @@ -929,8 +928,8 @@ typedef struct attr_entry short_u fg_color; /* foreground color number */ short_u bg_color; /* background color number */ # ifdef FEAT_TERMGUICOLORS - long_u fg_rgb; /* foreground color RGB */ - long_u bg_rgb; /* background color RGB */ + guicolor_T fg_rgb; /* foreground color RGB */ + guicolor_T bg_rgb; /* background color RGB */ # endif } cterm; # ifdef FEAT_GUI |