You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

14 lines
733B

  1. diff --git a/modules/juce_audio_basics/midi/juce_MidiMessage.h b/modules/juce_audio_basics/midi/juce_MidiMessage.h
  2. index 22ac79483..5c761f659 100644
  3. --- a/modules/juce_audio_basics/midi/juce_MidiMessage.h
  4. +++ b/modules/juce_audio_basics/midi/juce_MidiMessage.h
  5. @@ -979,7 +979,7 @@ private:
  6. #endif
  7. inline bool isHeapAllocated() const noexcept { return size > (int) sizeof (packedData); }
  8. - inline uint8* getData() const noexcept { return isHeapAllocated() ? packedData.allocatedData : (uint8*) packedData.asBytes; }
  9. + inline uint8* getData() const noexcept { return isHeapAllocated() ? packedData.allocatedData : const_cast<uint8*>(packedData.asBytes); }
  10. uint8* allocateSpace (int);
  11. };