diff options
| author | Carl Hetherington <cth@carlh.net> | 2014-05-02 10:41:27 +0100 |
|---|---|---|
| committer | Carl Hetherington <cth@carlh.net> | 2014-05-02 10:41:27 +0100 |
| commit | 301728c818a0b293d816eb8c70bd9bf0f3d6787b (patch) | |
| tree | cdc7842e320014ff628f7fb55b7ea9bf96668979 /src/lib | |
| parent | d9f6eaec8f78e6d8d5739d3aa68bd7485d8534cd (diff) | |
Cast to double when converting time, same as in the tests.
Diffstat (limited to 'src/lib')
| -rw-r--r-- | src/lib/subrip.cc | 2 |
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; } |
