LGTM warning: Comparison result is always the same

Comparison is always true because pos >= 0.
This commit is contained in:
Dimitri Papadopoulos 2021-08-30 18:48:57 +03:00
parent 0afbdcf3e6
commit bea58764ad
No known key found for this signature in database
GPG Key ID: 95998121D9D25F5D
1 changed files with 1 additions and 1 deletions

View File

@ -1312,7 +1312,7 @@ static OPJ_BOOL opj_pi_check_next_level(OPJ_INT32 pos,
opj_poc_t *tcp = &tcps->pocs[pino];
if (pos >= 0) {
for (i = pos; pos >= 0; i--) {
for (i = pos; i >= 0; i--) {
switch (prog[i]) {
case 'R':
if (tcp->res_t == tcp->resE) {