From 1b58cdd160c2e0ada0f638679a2aa27e4665fc48 Mon Sep 17 00:00:00 2001 From: Bram Moolenaar Date: Mon, 22 Aug 2016 23:04:33 +0200 Subject: 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. --- src/proto/term.pro | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/proto/term.pro') diff --git a/src/proto/term.pro b/src/proto/term.pro index 93c6cb09b..0c238d3d8 100644 --- a/src/proto/term.pro +++ b/src/proto/term.pro @@ -1,7 +1,7 @@ /* term.c */ guicolor_T termgui_mch_get_color(char_u *name); guicolor_T termgui_get_color(char_u *name); -long_u termgui_mch_get_rgb(guicolor_T color); +guicolor_T termgui_mch_get_rgb(guicolor_T color); int set_termname(char_u *term); void set_mouse_termcode(int n, char_u *s); void del_mouse_termcode(int n); @@ -25,8 +25,8 @@ void term_set_winpos(int x, int y); void term_set_winsize(int width, int height); void term_fg_color(int n); void term_bg_color(int n); -void term_fg_rgb_color(long_u rgb); -void term_bg_rgb_color(long_u rgb); +void term_fg_rgb_color(guicolor_T rgb); +void term_bg_rgb_color(guicolor_T rgb); void term_settitle(char_u *title); void ttest(int pairs); void add_long_to_buf(long_u val, char_u *dst); -- cgit v1.2.1