Correct a potential overflow for CC names

A previous change put the opcode parameters as uint16
This commit is contained in:
Paul Fd 2020-03-16 12:44:15 +01:00
parent 1af782109f
commit 930bfdfefe

View file

@ -19,7 +19,7 @@ namespace sfz
{ {
using SfzCCArray = std::array<uint8_t, config::numCCs>; using SfzCCArray = std::array<uint8_t, config::numCCs>;
using CCNamePair = std::pair<uint8_t, std::string>; using CCNamePair = std::pair<uint16_t, std::string>;
template<class ValueType> template<class ValueType>
struct CCValuePair { struct CCValuePair {