From: Matthieu Darbois Date: Fri, 11 Sep 2015 12:17:30 +0000 (+0200) Subject: Change test in opj_tcd_makelayer X-Git-Tag: v2.1.1~22^2~62^2 X-Git-Url: https://git.carlh.net/gitweb/?a=commitdiff_plain;h=bac2c9e0a37a79a35e39cbe18572ec40bcfc3f29;p=openjpeg.git Change test in opj_tcd_makelayer Remove float equality test. Such a test has no meaning. --- diff --git a/src/lib/openjp2/tcd.c b/src/lib/openjp2/tcd.c index 32db260b..2fccff1c 100644 --- a/src/lib/openjp2/tcd.c +++ b/src/lib/openjp2/tcd.c @@ -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; }