neovim

Neovim text editor
git clone https://git.dasho.dev/neovim.git
Log | Files | Refs | README

commit 9e1474409934cda19e17d41a876415fc25022dce
parent 9ddb481d88d3926111e83d512921ebe98bb426ae
Author: Thomas Vigouroux <thomas.vigouroux@protonmail.com>
Date:   Tue, 28 Jun 2022 13:24:21 +0200

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:
Msrc/nvim/quickfix.c | 2--
1 file changed, 0 insertions(+), 2 deletions(-)

diff --git 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;