Mercurial > vim
comparison src/vim.h @ 9957:c0cd95d2e9f9 v7.4.2252
commit https://github.com/vim/vim/commit/424d74bb20335940e938a5b4708fc0d6b73f0de3
Author: Bram Moolenaar <Bram@vim.org>
Date: Thu Aug 25 23:02:11 2016 +0200
patch 7.4.2252
Problem: Compiler warnings for signed/unsigned in expression.
Solution: Remove type cast. (Dominique Pelle)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Thu, 25 Aug 2016 23:15:06 +0200 |
parents | 74e345d2878c |
children | 176e34b0d678 |
comparison
equal
deleted
inserted
replaced
9956:058fa617bb4b | 9957:c0cd95d2e9f9 |
---|---|
1630 # ifdef FEAT_TERMGUICOLORS | 1630 # ifdef FEAT_TERMGUICOLORS |
1631 # define GUI_FUNCTION(f) (gui.in_use ? gui_##f : termgui_##f) | 1631 # define GUI_FUNCTION(f) (gui.in_use ? gui_##f : termgui_##f) |
1632 # define GUI_FUNCTION2(f, pixel) (gui.in_use \ | 1632 # define GUI_FUNCTION2(f, pixel) (gui.in_use \ |
1633 ? ((pixel) != INVALCOLOR \ | 1633 ? ((pixel) != INVALCOLOR \ |
1634 ? gui_##f((pixel)) \ | 1634 ? gui_##f((pixel)) \ |
1635 : (long_u)INVALCOLOR) \ | 1635 : INVALCOLOR) \ |
1636 : termgui_##f((pixel))) | 1636 : termgui_##f((pixel))) |
1637 # define USE_24BIT (gui.in_use || p_tgc) | 1637 # define USE_24BIT (gui.in_use || p_tgc) |
1638 # else | 1638 # else |
1639 # define GUI_FUNCTION(f) gui_##f | 1639 # define GUI_FUNCTION(f) gui_##f |
1640 # define GUI_FUNCTION2(f,pixel) ((pixel) != INVALCOLOR \ | 1640 # define GUI_FUNCTION2(f,pixel) ((pixel) != INVALCOLOR \ |
1641 ? gui_##f((pixel)) \ | 1641 ? gui_##f((pixel)) \ |
1642 : (long_u)INVALCOLOR) | 1642 : INVALCOLOR) |
1643 # define USE_24BIT gui.in_use | 1643 # define USE_24BIT gui.in_use |
1644 # endif | 1644 # endif |
1645 #else | 1645 #else |
1646 # ifdef FEAT_TERMGUICOLORS | 1646 # ifdef FEAT_TERMGUICOLORS |
1647 # define GUI_FUNCTION(f) termgui_##f | 1647 # define GUI_FUNCTION(f) termgui_##f |