Mercurial > vim
diff src/term.c @ 13762:9de2b25932eb v8.0.1753
patch 8.0.1753: various warnings from a static analyser
commit https://github.com/vim/vim/commit/1c17ffa4611f4efe68c61f7cdd9ed692a866ba75
Author: Bram Moolenaar <Bram@vim.org>
Date: Tue Apr 24 15:19:04 2018 +0200
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)
author | Christian Brabandt <cb@256bit.org> |
---|---|
date | Tue, 24 Apr 2018 15:30:08 +0200 |
parents | 23e5f12f43d7 |
children | 5cf4a504bcc0 |
line wrap: on
line diff
--- a/src/term.c +++ b/src/term.c @@ -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, varnumbe 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;