summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
Diffstat (limited to 'src')
-rw-r--r--src/dcp_time.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index 4c16a91a..9b93391b 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -56,8 +56,8 @@ Time::Time (int64_t ticks)
void
Time::set (double ss)
{
- t = (int (round (ss * 1000)) % 1000) / 4;
s = floor (ss);
+ t = int (round (1000 * (ss - s) / 4));
if (s >= 60) {
m = s / 60;