diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-09-28 12:13:38 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-09-28 12:13:38 +0100 |
| commit | db8af2f03cc3c93b6a42b2e5ace53c169eddf5fd (patch) | |
| tree | 179d7ca79145a1dcc467a79ef181657b0ddd515e /src/dcp_time.cc | |
| parent | 57a68aced4450e2f7e0259ffa1ddb171834cc8c9 (diff) | |
Round down when rebasing times.
Diffstat (limited to 'src/dcp_time.cc')
| -rw-r--r-- | src/dcp_time.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc index 19ab2de1..3db449fb 100644 --- a/src/dcp_time.cc +++ b/src/dcp_time.cc @@ -291,5 +291,5 @@ Time::as_seconds () const Time Time::rebase (int tcr_) const { - return Time (h, m, s, rint (float (e) * tcr_ / tcr), tcr_); + return Time (h, m, s, floor (float (e) * tcr_ / tcr), tcr_); } |
