Try to fix build on OS X.
authorCarl Hetherington <cth@carlh.net>
Tue, 8 Dec 2015 09:59:03 +0000 (09:59 +0000)
committerCarl Hetherington <cth@carlh.net>
Tue, 8 Dec 2015 09:59:03 +0000 (09:59 +0000)
src/j2k.cc

index 635d50244cc4f717d8d20b4ff900773aa074d67a..f19b563221e922fb88aa2161aee213626aa46784 100644 (file)
@@ -136,8 +136,8 @@ dcp::decompress_j2k (uint8_t* data, int64_t size, int reduce)
        opj_destroy_codec (decoder);
        opj_stream_destroy (stream);
 
-       image->x1 = rint (float(image->x1) / pow (2, reduce));
-       image->y1 = rint (float(image->y1) / pow (2, reduce));
+       image->x1 = rint (float(image->x1) / pow (2.0f, reduce));
+       image->y1 = rint (float(image->y1) / pow (2.0f, reduce));
        return shared_ptr<OpenJPEGImage> (new OpenJPEGImage (image));
 }