summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/wx/timeline.cc2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/wx/timeline.cc b/src/wx/timeline.cc
index 52707e45c..7e0ecf27e 100644
--- a/src/wx/timeline.cc
+++ b/src/wx/timeline.cc
@@ -42,7 +42,7 @@ Timeline::Timeline (wxWindow* parent, shared_ptr<Playlist> pl)
if (pl->audio_from() == Playlist::AUDIO_FFMPEG) {
SetMinSize (wxSize (640, _track_height * 2 + 96));
} else {
- SetMinSize (wxSize (640, _track_height * (max (1UL, pl->audio().size()) + 1) + 96));
+ SetMinSize (wxSize (640, _track_height * (max (size_t (1), pl->audio().size()) + 1) + 96));
}
pl->Changed.connect (bind (&Timeline::playlist_changed, this));