1
0
forked from aniani/vim

patch 8.0.1753: various warnings from a static analyser

Problem:    Various warnings from a static analyser
Solution:   Add type casts, remove unneeded conditions. (Christian Brabandt,
            closes #2770)
This commit is contained in:
Bram Moolenaar
2018-04-24 15:19:04 +02:00
parent a2aa8a2b22
commit 1c17ffa461
9 changed files with 15 additions and 13 deletions

View File

@@ -2361,7 +2361,7 @@ term_7to8bit(char_u *p)
return 0;
}
#ifdef FEAT_GUI
#if defined(FEAT_GUI) || defined(PROTO)
int
term_is_gui(char_u *name)
{
@@ -2823,7 +2823,7 @@ term_get_winpos(int *x, int *y, varnumber_T timeout)
winpos_x = prev_winpos_x;
winpos_y = prev_winpos_y;
if (timeout < 10 && prev_winpos_y >= 0 && prev_winpos_y >= 0)
if (timeout < 10 && prev_winpos_y >= 0 && prev_winpos_x >= 0)
{
/* Polling: return previous values if we have them. */
*x = winpos_x;