mirror of
https://github.com/juce-framework/JUCE.git
synced 2026-01-10 23:44:24 +00:00
juce_midi_ci: Improve MinGW compatibility
This commit is contained in:
parent
660af8c674
commit
6d7485fd0d
4 changed files with 7 additions and 6 deletions
|
|
@ -250,7 +250,7 @@ std::vector<std::byte> Encodings::decode (Span<const std::byte> bytes, Encoding
|
|||
return {};
|
||||
}
|
||||
|
||||
result.resize (previousSize + (size_t) read);
|
||||
result.resize ((size_t) read + previousSize);
|
||||
|
||||
if (read == 0)
|
||||
return result;
|
||||
|
|
|
|||
|
|
@ -316,7 +316,7 @@ namespace Message
|
|||
{
|
||||
auto tie() const
|
||||
{
|
||||
return std::tuple();
|
||||
return std::tuple<>();
|
||||
}
|
||||
|
||||
bool operator== (const ProfileInquiry& x) const { return tie() == x.tie(); }
|
||||
|
|
@ -655,7 +655,7 @@ namespace Message
|
|||
{
|
||||
auto tie() const
|
||||
{
|
||||
return std::tuple();
|
||||
return std::tuple<>();
|
||||
}
|
||||
|
||||
bool operator== (const ProcessInquiry& x) const { return tie() == x.tie(); }
|
||||
|
|
@ -710,7 +710,7 @@ namespace Message
|
|||
{
|
||||
auto tie() const
|
||||
{
|
||||
return std::tuple();
|
||||
return std::tuple<>();
|
||||
}
|
||||
|
||||
bool operator== (const ProcessEndMidiMessageReport& x) const { return tie() == x.tie(); }
|
||||
|
|
|
|||
|
|
@ -146,7 +146,8 @@ void PropertyDataMessageChunker::populateStorage() const
|
|||
std::rotate (storage->begin(), storage->begin() + getRoomForBody(), storage->end());
|
||||
|
||||
// ...and bring the storage buffer down to size, if we didn't manage to fill it
|
||||
storage->resize (storage->size() + numBytesRead - (size_t) getRoomForBody());
|
||||
const auto room = (size_t) getRoomForBody();
|
||||
storage->resize (storage->size() + numBytesRead - room);
|
||||
}
|
||||
|
||||
} // namespace juce::midi_ci::detail
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue