diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-08-25 22:17:23 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-08-25 22:17:23 +0100 |
| commit | 1d68fe1e3ad1a9aa85fa7fc6071a0b8c64973953 (patch) | |
| tree | cbad95204bf34c95ef2e6c6f5963eff00b81f140 /src/lib/dcpomatic_time.h | |
| parent | e386b94425586760374d8e1cb16be99af09cf07f (diff) | |
Purge rint() and use llrint and friends.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 4 |
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> |
