projects
/
libdcp.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
863ff8c
)
Forward-port heinous time thinko from 0.x.
author
Carl Hetherington
<cth@carlh.net>
Mon, 6 Oct 2014 19:39:32 +0000
(20:39 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Mon, 6 Oct 2014 19:39:32 +0000
(20:39 +0100)
src/dcp_time.cc
patch
|
blob
|
history
diff --git
a/src/dcp_time.cc
b/src/dcp_time.cc
index 35cd747ab7965d04fa9f52436de8ed30266b8fd4..e2803a5380617de999a4cf90213f0ffdd7205527 100644
(file)
--- 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;
}