From 9e1474409934cda19e17d41a876415fc25022dce Mon Sep 17 00:00:00 2001 From: Thomas Vigouroux Date: Tue, 28 Jun 2022 13:24:21 +0200 Subject: 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 --- src/nvim/quickfix.c | 2 -- 1 file changed, 2 deletions(-) (limited to 'src') 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; -- cgit