mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-06 14:54:56 +01:00
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:
parent
a0a2138651
commit
aedf697646
1 changed files with 4 additions and 2 deletions
|
|
@ -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
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue