From 7afad19c7745cf7e1db6ab8961a90a89b2f654c2 Mon Sep 17 00:00:00 2001 From: Mathieu Malaterre Date: Mon, 3 Mar 2014 16:02:36 +0000 Subject: [PATCH] [trunk] Remove a simple warning about int -> float conversion --- src/lib/openjp2/t1.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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++;