From: Mathieu Malaterre Date: Fri, 7 Mar 2014 10:21:51 +0000 (+0000) Subject: [trunk] Fix simple warning about sign conversion X-Git-Tag: version.2.0.1~4^2~105 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=e71431ec78249b9d089a340befc18b151326c81f;p=openjpeg [trunk] Fix simple warning about sign conversion Update issue 256 --- diff --git a/src/lib/openjp2/invert.c b/src/lib/openjp2/invert.c index 92de0a85..bb6672d4 100644 --- a/src/lib/openjp2/invert.c +++ b/src/lib/openjp2/invert.c @@ -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++)); }