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
This commit is contained in:
Thomas Vigouroux
2022-06-28 13:24:21 +02:00
committed by GitHub
parent 9ddb481d88
commit 9e14744099

View File

@@ -3319,7 +3319,6 @@ void qf_age(exarg_T *eap)
} }
if (eap->addr_count != 0) { if (eap->addr_count != 0) {
assert(eap->line2 <= INT_MAX);
count = (int)eap->line2; count = (int)eap->line2;
} else { } else {
count = 1; count = 1;
@@ -3739,7 +3738,6 @@ void ex_copen(exarg_T *eap)
incr_quickfix_busy(); incr_quickfix_busy();
if (eap->addr_count != 0) { if (eap->addr_count != 0) {
assert(eap->line2 <= INT_MAX);
height = (int)eap->line2; height = (int)eap->line2;
} else { } else {
height = QF_WINHEIGHT; height = QF_WINHEIGHT;