[trunk] Fix simple warning about sign conversion
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 10:21:51 +0000 (10:21 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Fri, 7 Mar 2014 10:21:51 +0000 (10:21 +0000)
Update issue 256

src/lib/openjp2/invert.c

index 92de0a85a694a5f578acf11b9ae9e19648e7b676..bb6672d4d2119bb8df54a8055fa06e3ed5c1dec7 100644 (file)
@@ -250,7 +250,7 @@ void opj_lupSolve (OPJ_FLOAT32 * pResult,
                lTmpMatrix = lLineMatrix;
         u = *(lTmpMatrix++);
                lCurrentPtr = lDestPtr--;
-        for (j = k + 1; j < nb_compo; ++j) {
+        for (j = (OPJ_UINT32)(k + 1); j < nb_compo; ++j) {
                        /* sum += matrix[k][j] * x[j] */
                sum += (*(lTmpMatrix++)) * (*(lCurrentPtr++));
                }