[trunk] Remove a simple warning about int -> float conversion
authorMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 16:02:36 +0000 (16:02 +0000)
committerMathieu Malaterre <mathieu.malaterre@gmail.com>
Mon, 3 Mar 2014 16:02:36 +0000 (16:02 +0000)
src/lib/openjp2/t1.c

index 240126c9e83fbe84699047c3acba9e1d7e468729..8fde54886ac33f7acf92388fe6745648c20453d7 100644 (file)
@@ -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++;