From: Mathieu Malaterre Date: Mon, 3 Mar 2014 16:02:36 +0000 (+0000) Subject: [trunk] Remove a simple warning about int -> float conversion X-Git-Tag: version.2.0.1~4^2~139 X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=7afad19c7745cf7e1db6ab8961a90a89b2f654c2;p=openjpeg [trunk] Remove a simple warning about int -> float conversion --- diff --git a/src/lib/openjp2/t1.c b/src/lib/openjp2/t1.c index 240126c9..8fde5488 100644 --- a/src/lib/openjp2/t1.c +++ b/src/lib/openjp2/t1.c @@ -1331,7 +1331,7 @@ OPJ_BOOL opj_t1_decode_cblks( opj_t1_t* t1, for (j = 0; j < cblk_h; ++j) { OPJ_FLOAT32* restrict tiledp2 = tiledp; for (i = 0; i < cblk_w; ++i) { - OPJ_FLOAT32 tmp = *datap * band->stepsize; + OPJ_FLOAT32 tmp = (OPJ_FLOAT32)*datap * band->stepsize; *tiledp2 = tmp; datap++; tiledp2++;