summaryrefslogtreecommitdiff
path: root/src/lib/util.cc
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-25 22:17:23 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-25 22:17:23 +0100
commit1d68fe1e3ad1a9aa85fa7fc6071a0b8c64973953 (patch)
treecbad95204bf34c95ef2e6c6f5963eff00b81f140 /src/lib/util.cc
parente386b94425586760374d8e1cb16be99af09cf07f (diff)
Purge rint() and use llrint and friends.
Diffstat (limited to 'src/lib/util.cc')
-rw-r--r--src/lib/util.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/util.cc b/src/lib/util.cc
index 76e76328d..bccc368da 100644
--- a/src/lib/util.cc
+++ b/src/lib/util.cc
@@ -539,10 +539,10 @@ dcp::Size
fit_ratio_within (float ratio, dcp::Size full_frame)
{
if (ratio < full_frame.ratio ()) {
- return dcp::Size (rint (full_frame.height * ratio), full_frame.height);
+ return dcp::Size (lrintf (full_frame.height * ratio), full_frame.height);
}
- return dcp::Size (full_frame.width, rint (full_frame.width / ratio));
+ return dcp::Size (full_frame.width, lrintf (full_frame.width / ratio));
}
void *