diff options
author | Bram Moolenaar <Bram@vim.org> | 2018-04-24 15:19:04 +0200 |
---|---|---|
committer | Bram Moolenaar <Bram@vim.org> | 2018-04-24 15:19:04 +0200 |
commit | 1c17ffa4611f4efe68c61f7cdd9ed692a866ba75 (patch) | |
tree | 009f678c60ced89e9f9185f848fb03fcd06d0b25 /src/getchar.c | |
parent | a2aa8a2b22de909619d7faa3ff5383a6224defc5 (diff) | |
download | vim-git-1c17ffa4611f4efe68c61f7cdd9ed692a866ba75.tar.gz |
patch 8.0.1753: various warnings from a static analyserv8.0.1753
Problem: Various warnings from a static analyser
Solution: Add type casts, remove unneeded conditions. (Christian Brabandt,
closes #2770)
Diffstat (limited to 'src/getchar.c')
-rw-r--r-- | src/getchar.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/getchar.c b/src/getchar.c index 285d5d5d0..623440ecf 100644 --- a/src/getchar.c +++ b/src/getchar.c @@ -4119,7 +4119,7 @@ map_to_exists_mode(char_u *rhs, int mode, int abbr) mapblock_T *mp; int hash; # ifdef FEAT_LOCALMAP - int expand_buffer = FALSE; + int exp_buffer = FALSE; validate_maphash(); @@ -4134,14 +4134,14 @@ map_to_exists_mode(char_u *rhs, int mode, int abbr) if (hash > 0) /* there is only one abbr list */ break; #ifdef FEAT_LOCALMAP - if (expand_buffer) + if (exp_buffer) mp = curbuf->b_first_abbr; else #endif mp = first_abbr; } # ifdef FEAT_LOCALMAP - else if (expand_buffer) + else if (exp_buffer) mp = curbuf->b_maphash[hash]; # endif else @@ -4154,9 +4154,9 @@ map_to_exists_mode(char_u *rhs, int mode, int abbr) } } # ifdef FEAT_LOCALMAP - if (expand_buffer) + if (exp_buffer) break; - expand_buffer = TRUE; + exp_buffer = TRUE; } # endif |