Skip to content

Commit

Permalink
Merge pull request #1373 from DimitriPapadopoulos/lgtm
Browse files Browse the repository at this point in the history
LGTM warning: Comparison result is always the same
  • Loading branch information
rouault authored Aug 30, 2021
2 parents 9bb0db7 + bea5876 commit 172583a
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/openjp2/pi.c
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down

0 comments on commit 172583a

Please sign in to comment.