mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
Tidied up a couple of comments, warnings and did a bit of code modernisation
This commit is contained in:
parent
1bdbd6f969
commit
e0698daaca
3 changed files with 45 additions and 47 deletions
|
|
@ -73,7 +73,7 @@ public:
|
|||
MidiMessage (int byte1, int byte2, int byte3, Data... otherBytes) : size (3 + sizeof... (otherBytes))
|
||||
{
|
||||
// this checks that the length matches the data..
|
||||
jassert (size > 3 || byte1 >= 0xf0 || getMessageLengthFromFirstByte (byte1) == size);
|
||||
jassert (size > 3 || byte1 >= 0xf0 || getMessageLengthFromFirstByte ((uint8) byte1) == size);
|
||||
|
||||
const uint8 data[] = { (uint8) byte1, (uint8) byte2, (uint8) byte3, static_cast<uint8> (otherBytes)... };
|
||||
memcpy (allocateSpace (size), data, (size_t) size);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue