summaryrefslogtreecommitdiff
path: root/src/lib/dcpomatic_time.h
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/dcpomatic_time.h
parente386b94425586760374d8e1cb16be99af09cf07f (diff)
Purge rint() and use llrint and friends.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
-rw-r--r--src/lib/dcpomatic_time.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h
index c1d27407a..ba3c8fcad 100644
--- a/src/lib/dcpomatic_time.h
+++ b/src/lib/dcpomatic_time.h
@@ -118,7 +118,7 @@ public:
* @param r Sampling rate.
*/
Time<S, O> round_up (float r) {
- Type const n = rint (HZ / r);
+ Type const n = llrintf (HZ / r);
Type const a = _t + n - 1;
return Time<S, O> (a - (a % n));
}
@@ -180,7 +180,7 @@ public:
static Time<S, O> from_seconds (double s) {
- return Time<S, O> (rint (s * HZ));
+ return Time<S, O> (llrint (s * HZ));
}
template <class T>