Change test in opj_tcd_makelayer

Remove float equality test. Such a test has no meaning.
This commit is contained in:
Matthieu Darbois 2015-09-11 14:17:30 +02:00
parent ee0f313848
commit bac2c9e0a3
1 changed files with 1 additions and 1 deletions

View File

@ -268,7 +268,7 @@ void opj_tcd_makelayer( opj_tcd_t *tcd,
n = passno + 1; n = passno + 1;
continue; continue;
} }
if (thresh - (dd / dr) <= DBL_EPSILON) /* do not rely on float equality, check with DBL_EPSILON margin */ if (thresh - (dd / dr) < DBL_EPSILON) /* do not rely on float equality, check with DBL_EPSILON margin */
n = passno + 1; n = passno + 1;
} }