aboutsummaryrefslogtreecommitdiff
path: root/src/nvim/option.c
diff options
context:
space:
mode:
authordundargoc <33953936+dundargoc@users.noreply.github.com>2022-03-11 15:04:48 +0100
committerGitHub <noreply@github.com>2022-03-11 15:04:48 +0100
commitc3a6ff6aa3be259255976b1178dd07ac876ff124 (patch)
tree8e26b411ff3707ad9cbcebb8a6044fbb13cb49ff /src/nvim/option.c
parent19858288b415ebea078dee88d12715409ea73c00 (diff)
downloadrneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.tar.gz
rneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.tar.bz2
rneovim-c3a6ff6aa3be259255976b1178dd07ac876ff124.zip
fix(coverity): dead code and operands don't affect result #17662
* fix(coverity/349942): structurally dead code * fix(coverity/331396): operands don't affect result * fix(coverity/331393): operands don't affect result * fix(coverity/331392): operands don't affect result * fix(coverity/331384): operands don't affect result * fix(coverity/331374): operands don't affect result * fix(coverity/331372): operands don't affect result * fix(coverity/331371): operands don't affect result * fix(coverity/331364): operands don't affect result * fix(coverity/105585): operands don't affect result
Diffstat (limited to 'src/nvim/option.c')
-rw-r--r--src/nvim/option.c6
1 files changed, 2 insertions, 4 deletions
diff --git a/src/nvim/option.c b/src/nvim/option.c
index a0706dfa14..191b635dc0 100644
--- a/src/nvim/option.c
+++ b/src/nvim/option.c
@@ -5664,12 +5664,10 @@ void comp_col(void)
}
}
assert(sc_col >= 0
- && INT_MIN + sc_col <= Columns
- && Columns - sc_col <= INT_MAX);
+ && INT_MIN + sc_col <= Columns);
sc_col = Columns - sc_col;
assert(ru_col >= 0
- && INT_MIN + ru_col <= Columns
- && Columns - ru_col <= INT_MAX);
+ && INT_MIN + ru_col <= Columns);
ru_col = Columns - ru_col;
if (sc_col <= 0) { // screen too narrow, will become a mess
sc_col = 1;