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.
diff --git a/src/gui.c b/src/gui.c
index 6f1d8f5..31ddd03 100644
--- a/src/gui.c
+++ b/src/gui.c
@@ -4741,7 +4741,7 @@
int
gui_get_lightness(guicolor_T pixel)
{
- long_u rgb = gui_mch_get_rgb(pixel);
+ long_u rgb = (long_u)gui_mch_get_rgb(pixel);
return (int)( (((rgb >> 16) & 0xff) * 299)
+ (((rgb >> 8) & 0xff) * 587)