diff options
author | Thomas Vigouroux <thomas.vigouroux@protonmail.com> | 2022-06-28 13:24:21 +0200 |
---|---|---|
committer | GitHub <noreply@github.com> | 2022-06-28 04:24:21 -0700 |
commit | 9e1474409934cda19e17d41a876415fc25022dce (patch) | |
tree | f82c45dd5e8069c7788a2c7f8395d96f7a90e025 /src/nvim/quickfix.c | |
parent | 9ddb481d88d3926111e83d512921ebe98bb426ae (diff) | |
download | rneovim-9e1474409934cda19e17d41a876415fc25022dce.tar.gz rneovim-9e1474409934cda19e17d41a876415fc25022dce.tar.bz2 rneovim-9e1474409934cda19e17d41a876415fc25022dce.zip |
fix(coverity): redundant assert #19059
* fix(coverity/353303): redundant assert
eap->line2 is an int32_t, it is always lower than INT_MAX.
* fix(coverity/353302): redundant assert
Diffstat (limited to 'src/nvim/quickfix.c')
-rw-r--r-- | src/nvim/quickfix.c | 2 |
1 files changed, 0 insertions, 2 deletions
diff --git a/src/nvim/quickfix.c b/src/nvim/quickfix.c index 22e72669ee..edf964f5dd 100644 --- a/src/nvim/quickfix.c +++ b/src/nvim/quickfix.c @@ -3319,7 +3319,6 @@ void qf_age(exarg_T *eap) } if (eap->addr_count != 0) { - assert(eap->line2 <= INT_MAX); count = (int)eap->line2; } else { count = 1; @@ -3739,7 +3738,6 @@ void ex_copen(exarg_T *eap) incr_quickfix_busy(); if (eap->addr_count != 0) { - assert(eap->line2 <= INT_MAX); height = (int)eap->line2; } else { height = QF_WINHEIGHT; |