Fix/amend previous commit
authorRobin Gareus <robin@gareus.org>
Tue, 15 Oct 2019 12:20:52 +0000 (14:20 +0200)
committerRobin Gareus <robin@gareus.org>
Tue, 15 Oct 2019 12:20:52 +0000 (14:20 +0200)
gtk2_ardour/instrument_selector.cc

index 323a5b61cb944e122c2439302d0b840bc7933a7e..c2fcff1d8d42117c84348e723af65571b7ee5303 100644 (file)
@@ -128,12 +128,13 @@ InstrumentSelector::build_instrument_list()
                std::string suffix;
 
 #ifdef MIXBUS
+               uint32_t n_outs = p->n_outputs.n_audio();
                if (n_outs > 2) {
                        suffix = string_compose(_("%1 outs"), n_outs);
                }
 #else
                if (p->multichannel_name_ambiguity) {
-                       int n_outs = p->n_outputs.n_audio();
+                       uint32_t n_outs = p->n_outputs.n_audio();
                        if (n_outs > 2) {
                                suffix = string_compose(_("%1 outs"), n_outs);
                        } else if (n_outs == 2) {