Fixes to allow building on GCC 5.3.1
This commit is contained in:
parent
05608108fc
commit
9c321af37b
2 changed files with 2 additions and 2 deletions
|
|
@ -767,7 +767,7 @@ float sfz::Region::velocityCurve(uint8_t velocity) const noexcept
|
||||||
return gain;
|
return gain;
|
||||||
}
|
}
|
||||||
|
|
||||||
constexpr uint8_t offsetAndClamp(uint8_t key, int offset, sfz::Range<uint8_t> range)
|
uint8_t offsetAndClamp(uint8_t key, int offset, sfz::Range<uint8_t> range)
|
||||||
{
|
{
|
||||||
const int offsetKey { key + offset };
|
const int offsetKey { key + offset };
|
||||||
if (offsetKey > std::numeric_limits<uint8_t>::max())
|
if (offsetKey > std::numeric_limits<uint8_t>::max())
|
||||||
|
|
|
||||||
|
|
@ -165,7 +165,7 @@ void sfz::Synth::handleControlOpcodes(const std::vector<Opcode>& members)
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
case hash("label_cc"):
|
case hash("label_cc"):
|
||||||
if (member.parameter && Default::ccNumberRange.containsWithEnd(*member.parameter))
|
if (member.parameter && Default::ccNumberRange.containsWithEnd(*member.parameter))
|
||||||
ccNames.emplace_back(*member.parameter, member.value);
|
ccNames.emplace_back(*member.parameter, std::string(member.value));
|
||||||
break;
|
break;
|
||||||
case hash("Default_path"):
|
case hash("Default_path"):
|
||||||
[[fallthrough]];
|
[[fallthrough]];
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue