summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorCarl Hetherington <cth@carlh.net>2015-08-26 01:33:34 +0100
committerCarl Hetherington <cth@carlh.net>2015-08-26 01:33:34 +0100
commite70f23c79bb3a9abe998d6bdd77641c2c1ae24d4 (patch)
tree3039acfd5eca8020fdf5482156672fa4b19631bf /src
parentd5066f2051d91b638f39bd22d5f82154accd1af2 (diff)
Fix lrint-related crash.
Diffstat (limited to 'src')
-rw-r--r--src/wx/film_viewer.cc2
1 files changed, 1 insertions, 1 deletions
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));
}