projects
/
dcpomatic.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d9f6eae
)
Cast to double when converting time, same as in the tests.
author
Carl Hetherington
<cth@carlh.net>
Fri, 2 May 2014 09:41:27 +0000
(10:41 +0100)
committer
Carl Hetherington
<cth@carlh.net>
Fri, 2 May 2014 09:41:27 +0000
(10:41 +0100)
src/lib/subrip.cc
patch
|
blob
|
history
diff --git
a/src/lib/subrip.cc
b/src/lib/subrip.cc
index aa4a0b548b88bae467fb68aad33db4ff07b7740f..9d207d528d0f04f7060ebc18c5e8d2fbe4228a16 100644
(file)
--- a/
src/lib/subrip.cc
+++ b/
src/lib/subrip.cc
@@
-138,7
+138,7
@@
SubRip::convert_time (string t)
vector<string> b;
boost::algorithm::split (b, a[2], boost::is_any_of (","));
r += ContentTime::from_seconds (lexical_cast<int> (b[0]));
- r += ContentTime::from_seconds (lexical_cast<
float
> (b[1]) / 1000);
+ r += ContentTime::from_seconds (lexical_cast<
double
> (b[1]) / 1000);
return r;
}