Fix build on 32-bit.
authorCarl Hetherington <cth@carlh.net>
Wed, 17 Oct 2012 22:17:40 +0000 (23:17 +0100)
committerCarl Hetherington <cth@carlh.net>
Wed, 17 Oct 2012 22:17:40 +0000 (23:17 +0100)
src/wx/film_viewer.cc

index 614dd794b8a336ebeb200cb023d703d96cbec293..a3827fba1df1e6acc5c67ca7dca661d97bda95ec 100644 (file)
@@ -234,7 +234,7 @@ FilmViewer::FilmViewer (Film* f, wxWindow* p)
        _thumb_panel = new ThumbPanel (this, f);
        _sizer->Add (_thumb_panel, 1, wxEXPAND);
 
-       int const m = max (1LU, f ? f->thumbs().size() - 1 : 0);
+       int const m = max ((size_t) 1, f ? f->thumbs().size() - 1 : 0);
        _slider = new wxSlider (this, wxID_ANY, 0, 0, m);
        _sizer->Add (_slider, 0, wxEXPAND | wxLEFT | wxRIGHT);
        set_thumbnail (0);