summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2014-05-02 10:41:27 +0100
committerCarl Hetherington <cth@carlh.net>2014-05-02 10:41:27 +0100
commit301728c818a0b293d816eb8c70bd9bf0f3d6787b (patch)
treecdc7842e320014ff628f7fb55b7ea9bf96668979 /src
parentd9f6eaec8f78e6d8d5739d3aa68bd7485d8534cd (diff)
Cast to double when converting time, same as in the tests.
Diffstat (limited to 'src')
-rw-r--r--src/lib/subrip.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/subrip.cc b/src/lib/subrip.cc
index aa4a0b548..9d207d528 100644
--- 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;
}