summaryrefslogtreecommitdiffstats
path: root/src/structs.h
diff options
context:
space:
mode:
authorBram Moolenaar <Bram@vim.org>2016-08-22 23:04:33 +0200
committerBram Moolenaar <Bram@vim.org>2016-08-22 23:04:33 +0200
commit1b58cdd160c2e0ada0f638679a2aa27e4665fc48 (patch)
tree5a88e5a7aec9e04bc428c6a9e468cb2fc7ae2edb /src/structs.h
parent17f1347b867cbcc0ce380bf9a2466b4c31896f04 (diff)
patch 7.4.2243v7.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.h7
1 files changed, 3 insertions, 4 deletions
diff --git a/src/structs.h b/src/structs.h
index 4488bf860c..f91844277f 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