Cast to double when converting time, same as in the tests.
authorCarl Hetherington <cth@carlh.net>
Fri, 2 May 2014 09:41:27 +0000 (10:41 +0100)
committerCarl Hetherington <cth@carlh.net>
Fri, 2 May 2014 09:41:27 +0000 (10:41 +0100)
src/lib/subrip.cc

index aa4a0b548b88bae467fb68aad33db4ff07b7740f..9d207d528d0f04f7060ebc18c5e8d2fbe4228a16 100644 (file)
@@ -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;
 }