Change test in opj_tcd_makelayer 579/head
authorMatthieu Darbois <mayeut@users.noreply.github.com>
Fri, 11 Sep 2015 12:17:30 +0000 (14:17 +0200)
committerMatthieu Darbois <mayeut@users.noreply.github.com>
Fri, 11 Sep 2015 12:17:30 +0000 (14:17 +0200)
Remove float equality test. Such a test has no meaning.

src/lib/openjp2/tcd.c

index 32db260b124dd9856657e14000e70ea83671ee6b..2fccff1c9c78d8b1dbb173bee63b248a2b66f876 100644 (file)
@@ -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;
                                                 }