1
0
Fork 0
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:
reuk 2023-11-02 12:01:52 +00:00
parent 660af8c674
commit 6d7485fd0d
No known key found for this signature in database
GPG key ID: FCB43929F012EE5C
4 changed files with 7 additions and 6 deletions

View file

@ -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;

View file

@ -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(); }

View file

@ -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