Forward-port heinous time thinko from 0.x.
authorCarl Hetherington <cth@carlh.net>
Mon, 6 Oct 2014 19:39:32 +0000 (20:39 +0100)
committerCarl Hetherington <cth@carlh.net>
Mon, 6 Oct 2014 19:39:32 +0000 (20:39 +0100)
src/dcp_time.cc

index 35cd747ab7965d04fa9f52436de8ed30266b8fd4..e2803a5380617de999a4cf90213f0ffdd7205527 100644 (file)
@@ -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;
        }