mirror of
https://github.com/neovim/neovim.git
synced 2025-09-17 00:38:17 +00:00
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:
@@ -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;
|
||||
|
Reference in New Issue
Block a user