diff options
| author | Carl Hetherington <cth@carlh.net> | 2020-11-16 23:58:53 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2020-11-17 00:16:58 +0100 |
| commit | 40339285d62d136c4f87c8c7e030ff4f2bdb55b9 (patch) | |
| tree | 13488bf845328352ca5a6945e22af4cd842eeae8 | |
| parent | fcc0515087a0b2bf9af5043af1c324367f1c152c (diff) | |
Add some lrintf() calls to be sure.
| -rw-r--r-- | src/lib/image.cc | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/image.cc b/src/lib/image.cc index 2d3a4a1d5..9a9fb8c43 100644 --- a/src/lib/image.cc +++ b/src/lib/image.cc @@ -72,7 +72,7 @@ Image::vertical_factor (int n) const throw PixelFormatError ("line_factor()", _pixel_format); } - return pow (2.0f, d->log2_chroma_h); + return lrintf(powf(2.0f, d->log2_chroma_h)); } int @@ -87,7 +87,7 @@ Image::horizontal_factor (int n) const throw PixelFormatError ("sample_size()", _pixel_format); } - return pow (2.0f, d->log2_chroma_w); + return lrintf(powf(2.0f, d->log2_chroma_w)); } /** @param n Component index. |
