Change test in opj_tcd_makelayer
Remove float equality test. Such a test has no meaning.
This commit is contained in:
parent
ee0f313848
commit
bac2c9e0a3
|
@ -268,7 +268,7 @@ void opj_tcd_makelayer( opj_tcd_t *tcd,
|
|||
n = passno + 1;
|
||||
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;
|
||||
}
|
||||
|
||||
|
|
Loading…
Reference in New Issue