13
0

OSC: fix pre gcc5 problem

This commit is contained in:
Len Ovens 2018-06-20 12:34:15 -07:00
parent e34f006658
commit 4b37e248e1

View File

@ -1802,56 +1802,49 @@ OSC::surface_parse (const char *path, const char* types, lo_arg **argv, int argc
} else { } else {
linkid = argv[8]->i; linkid = argv[8]->i;
} }
[[fallthrough]];
case 8: case 8:
if (types[7] == 'f') { if (types[7] == 'f') {
linkset = (int) argv[7]->f; linkset = (int) argv[7]->f;
} else { } else {
linkset = argv[7]->i; linkset = argv[7]->i;
} }
[[fallthrough]];
case 7: case 7:
if (types[6] == 'f') { if (types[6] == 'f') {
port = (int) argv[6]->f; port = (int) argv[6]->f;
} else { } else {
port = argv[6]->i; port = argv[6]->i;
} }
[[fallthrough]];
case 6: case 6:
if (types[5] == 'f') { if (types[5] == 'f') {
pi_page = (int) argv[5]->f; pi_page = (int) argv[5]->f;
} else { } else {
pi_page = argv[5]->i; pi_page = argv[5]->i;
} }
[[fallthrough]];
case 5: case 5:
if (types[4] == 'f') { if (types[4] == 'f') {
se_page = (int) argv[4]->f; se_page = (int) argv[4]->f;
} else { } else {
se_page = argv[4]->i; se_page = argv[4]->i;
} }
[[fallthrough]];
case 4: case 4:
if (types[3] == 'f') { if (types[3] == 'f') {
fadermode = (int) argv[3]->f; fadermode = (int) argv[3]->f;
} else { } else {
fadermode = argv[3]->i; fadermode = argv[3]->i;
} }
[[fallthrough]];
case 3: case 3:
if (types[2] == 'f') { if (types[2] == 'f') {
feedback = (int) argv[2]->f; feedback = (int) argv[2]->f;
} else { } else {
feedback = argv[2]->i; feedback = argv[2]->i;
} }
[[fallthrough]]; // [[fallthrough]]; old compiler doesn't like
case 2: case 2:
if (types[1] == 'f') { if (types[1] == 'f') {
strip_types = (int) argv[1]->f; strip_types = (int) argv[1]->f;
} else { } else {
strip_types = argv[1]->i; strip_types = argv[1]->i;
} }
[[fallthrough]];
case 1: case 1:
if (types[0] == 'f') { if (types[0] == 'f') {
bank_size = (int) argv[0]->f; bank_size = (int) argv[0]->f;