forked from aniani/vim
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.
This commit is contained in:
@@ -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
|
||||
|
Reference in New Issue
Block a user