13
0

fix unsigned/signed math error

This commit is contained in:
Paul Davis 2015-05-27 08:57:16 -04:00
parent 431bcf2d10
commit 5e1ba50731

View File

@ -102,8 +102,12 @@ MackieControlProtocol::left_press (Button &)
DEBUG_TRACE (DEBUG::MackieControl, string_compose ("bank left with current initial = %1 nstrips = %2 tracks/busses = %3\n",
_current_initial_bank, strip_cnt, sorted.size()));
if (_current_initial_bank > 0) {
switch_banks ((_current_initial_bank - 1) / strip_cnt * strip_cnt);
} else {
switch_banks (0);
}
return on;
}