Fix crashes due to missing return value

due to -fomit-frame-pointer a missing return value leads
to stack corruption. This also fixes the return type.
This commit is contained in:
Robin Gareus 2022-10-03 19:38:30 +02:00
parent a0a2138651
commit aedf697646
No known key found for this signature in database
GPG key ID: A090BCE02CF57F04

View file

@ -1748,10 +1748,11 @@ Session::bang_trigger_at (int32_t route_index, int32_t row_index)
} }
if (index == route_index) { if (index == route_index) {
r->triggerbox()->bang_trigger_at(row_index); r->triggerbox()->bang_trigger_at(row_index);
return 1; return true;
} }
index++; index++;
} }
return false;
} }
bool bool
@ -1774,10 +1775,11 @@ Session::unbang_trigger_at (int32_t route_index, int32_t row_index)
} }
if (index == route_index) { if (index == route_index) {
r->triggerbox()->unbang_trigger_at(row_index); r->triggerbox()->unbang_trigger_at(row_index);
return 1; return true;
} }
index++; index++;
} }
return false;
} }
void void