Merge pull request #1373 from DimitriPapadopoulos/lgtm

LGTM warning: Comparison result is always the same
This commit is contained in:
Even Rouault 2021-08-30 19:15:32 +02:00 committed by GitHub
commit 172583ab5b
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
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]; opj_poc_t *tcp = &tcps->pocs[pino];
if (pos >= 0) { if (pos >= 0) {
for (i = pos; pos >= 0; i--) { for (i = pos; i >= 0; i--) {
switch (prog[i]) { switch (prog[i]) {
case 'R': case 'R':
if (tcp->res_t == tcp->resE) { if (tcp->res_t == tcp->resE) {