diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-12-08 12:14:16 +0000 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-12-08 12:14:16 +0000 |
| commit | c4db5b5396c6401c63d80777a812e8adc642ce02 (patch) | |
| tree | 7828feacdcb963dfd97cd84df9c60c2687079e72 /src | |
| parent | faffe89bd9c720ebc7884be7c775638d3ff5bf23 (diff) | |
| parent | e0ce01d697dc48e3441716b99290b1017822aa2c (diff) | |
Merge.
Diffstat (limited to 'src')
| -rw-r--r-- | src/j2k.cc | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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.0, reduce)); - image->y1 = rint (float(image->y1) / pow (2.0, 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)); } |
