From e70f23c79bb3a9abe998d6bdd77641c2c1ae24d4 Mon Sep 17 00:00:00 2001 From: Carl Hetherington Date: Wed, 26 Aug 2015 01:33:34 +0100 Subject: Fix lrint-related crash. --- src/wx/film_viewer.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/wx/film_viewer.cc b/src/wx/film_viewer.cc index b43db0d7b..020d57ce3 100644 --- a/src/wx/film_viewer.cc +++ b/src/wx/film_viewer.cc @@ -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)); } -- cgit v1.2.3