summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-12-08 09:12:03 +0000
committerCarl Hetherington <cth@carlh.net>2015-12-08 09:12:03 +0000
commit273fd9a4f1b43ae0de0071e5efd3b6347b166ff1 (patch)
treee7f10215e59ecf19c17aa6f99e69b7d21b8f1612 /src
parent485c951a5b51bdd32b79d3d6d4751952ae7b6b1e (diff)
Try to fix build on OS X.
Diffstat (limited to 'src')
-rw-r--r--src/j2k.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/j2k.cc b/src/j2k.cc
index 635d5024..5fd787f6 100644
--- a/src/j2k.cc
+++ b/src/j2k.cc
@@ -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.0, reduce));
+ image->y1 = rint (float(image->y1) / pow (2.0, reduce));
return shared_ptr<OpenJPEGImage> (new OpenJPEGImage (image));
}