diff options
author | Dundar Göc <gocdundar@gmail.com> | 2021-10-07 11:17:02 +0200 |
---|---|---|
committer | Dundar Göc <gocdundar@gmail.com> | 2021-10-07 13:16:55 +0200 |
commit | 6d9dea42012fa9ae42832f12c9fd457003cb196f (patch) | |
tree | 1aecf23386c01c10856489158e1f8ba798377356 /src/nvim/spell.c | |
parent | c61a3865eea21f87ac17719ba226ad556b5a11a6 (diff) | |
download | rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.gz rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.tar.bz2 rneovim-6d9dea42012fa9ae42832f12c9fd457003cb196f.zip |
refactor: remove redundant casts
Diffstat (limited to 'src/nvim/spell.c')
-rw-r--r-- | src/nvim/spell.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/nvim/spell.c b/src/nvim/spell.c index 450ec891ad..9ed421c8a0 100644 --- a/src/nvim/spell.c +++ b/src/nvim/spell.c @@ -2924,8 +2924,8 @@ void spell_suggest(int count) // Get the list of suggestions. Limit to 'lines' - 2 or the number in // 'spellsuggest', whatever is smaller. - if (sps_limit > (int)Rows - 2) { - limit = (int)Rows - 2; + if (sps_limit > Rows - 2) { + limit = Rows - 2; } else { limit = sps_limit; } |