Build fix for previous.
authorCarl Hetherington <cth@carlh.net>
Sat, 4 May 2019 22:00:48 +0000 (22:00 +0000)
committerCarl Hetherington <cth@carlh.net>
Sat, 4 May 2019 22:00:48 +0000 (22:00 +0000)
src/wx/audio_mapping_view.cc

index ef37e1b7a32d88b194de4c432aa59877a3e39fb6..959975a0096912fd0a72149bfcd55214cadb7483 100644 (file)
@@ -270,8 +270,8 @@ void
 AudioMappingView::paint_indicators (wxDC& dc)
 {
        /* _{input,output}_channels and _map may not always be in sync, be careful here */
-       size_t const output = min(_output_channels.size(), _map.output_channels());
-       size_t const input = min(_input_channels.size(), _map.input_channels());
+       size_t const output = min(_output_channels.size(), size_t(_map.output_channels()));
+       size_t const input = min(_input_channels.size(), size_t(_map.input_channels()));
 
        for (size_t x = 0; x < output; ++x) {
                for (size_t y = 0; y < input; ++y) {