summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-10-06 20:39:32 +0100
committerCarl Hetherington <cth@carlh.net>2014-10-06 20:39:32 +0100
commit7c35254b53b5b1ed6d5a80255ccd265cdcff222c (patch)
tree5e446bc7da1620fe9333e41115e5f4596ac59b7d
parent863ff8cced5b7d1d36ad6761fa1f6e2dbeafcad6 (diff)
Forward-port heinous time thinko from 0.x.
-rw-r--r--src/dcp_time.cc4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/dcp_time.cc b/src/dcp_time.cc
index 35cd747a..e2803a53 100644
--- a/src/dcp_time.cc
+++ b/src/dcp_time.cc
@@ -59,12 +59,12 @@ Time::set (double ss)
t = (int (round (ss * 1000)) % 1000) / 4;
s = floor (ss);
- if (s > 60) {
+ if (s >= 60) {
m = s / 60;
s -= m * 60;
}
- if (m > 60) {
+ if (m >= 60) {
h = m / 60;
m -= h * 60;
}