]> granicus.if.org Git - vim/commitdiff
patch 7.4.2252 v7.4.2252
authorBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2016 21:02:11 +0000 (23:02 +0200)
committerBram Moolenaar <Bram@vim.org>
Thu, 25 Aug 2016 21:02:11 +0000 (23:02 +0200)
Problem:    Compiler warnings for signed/unsigned in expression.
Solution:   Remove type cast. (Dominique Pelle)

src/version.c
src/vim.h

index 3c6d155d695ec34f66e3b468dd4dca4527e6c9a6..4fbbb821f13b99d20bfe3ac12ae7be4f79238bb2 100644 (file)
@@ -763,6 +763,8 @@ static char *(features[]) =
 
 static int included_patches[] =
 {   /* Add new patch number below this line */
+/**/
+    2252,
 /**/
     2251,
 /**/
index 898ebb60b83f15297c7959577f42230249b22e88..8d49dcd183b37739da6d4f761948379037493bb8 100644 (file)
--- a/src/vim.h
+++ b/src/vim.h
@@ -1632,14 +1632,14 @@ typedef UINT32_TYPEDEF UINT32_T;
 #  define GUI_FUNCTION2(f, pixel)   (gui.in_use \
                                    ?  ((pixel) != INVALCOLOR \
                                        ? gui_##f((pixel)) \
-                                       : (long_u)INVALCOLOR) \
+                                       : INVALCOLOR) \
                                    : termgui_##f((pixel)))
 #  define USE_24BIT                (gui.in_use || p_tgc)
 # else
 #  define GUI_FUNCTION(f)          gui_##f
 #  define GUI_FUNCTION2(f,pixel)    ((pixel) != INVALCOLOR \
                                     ? gui_##f((pixel)) \
-                                    : (long_u)INVALCOLOR)
+                                    : INVALCOLOR)
 #  define USE_24BIT                gui.in_use
 # endif
 #else