projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
110373d
)
Missing rounding.
author
Carl Hetherington
<cth@carlh.net>
Thu, 9 Jul 2015 18:42:30 +0000
(19:42 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Thu, 9 Jul 2015 18:42:30 +0000
(19:42 +0100)
src/lib/dcpomatic_time.h
patch
|
blob
|
history
diff --git
a/src/lib/dcpomatic_time.h
b/src/lib/dcpomatic_time.h
index df9c46c7157651fff9759b8f6e342c18b563ce2f..6988159570c2680468eb016905c76cfccfc3494b 100644
(file)
--- 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>