Fix lrint-related crash.
authorCarl Hetherington <cth@carlh.net>
Wed, 26 Aug 2015 00:33:34 +0000 (01:33 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 26 Aug 2015 00:33:34 +0000 (01:33 +0100)
src/wx/film_viewer.cc

index b43db0d7b04867d52f560e63d11bce06e8f21c4c..020d57ce3c4c5a6bc91369932c3f6598cf9e1749 100644 (file)
@@ -379,7 +379,7 @@ FilmViewer::update_position_label ()
 
        double const fps = _film->video_frame_rate ();
        /* Count frame number from 1 ... not sure if this is the best idea */
-       _frame_number->SetLabel (wxString::Format (wxT("%d"), lrint (_position.seconds() * fps) + 1));
+       _frame_number->SetLabel (wxString::Format (wxT("%ld"), lrint (_position.seconds() * fps) + 1));
        _timecode->SetLabel (time_to_timecode (_position, fps));
 }