diff options
| author | Carl Hetherington <cth@carlh.net> | 2015-07-09 19:42:30 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2015-07-09 19:42:30 +0100 |
| commit | a1c0d5bbd239fa45a412e788da7f3bc9b7d1f89e (patch) | |
| tree | 69b96e0eb91752ace5e59f0c6f53bf0045985cb0 /src/lib/dcpomatic_time.h | |
| parent | 110373d3841c3f2dd4bcd66b12a28556dc8441fc (diff) | |
Missing rounding.
Diffstat (limited to 'src/lib/dcpomatic_time.h')
| -rw-r--r-- | src/lib/dcpomatic_time.h | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/dcpomatic_time.h b/src/lib/dcpomatic_time.h index df9c46c71..698815957 100644 --- a/src/lib/dcpomatic_time.h +++ b/src/lib/dcpomatic_time.h @@ -175,7 +175,7 @@ public: static Time<S, O> from_seconds (double s) { - return Time<S, O> (s * HZ); + return Time<S, O> (rint (s * HZ)); } template <class T> |
