| @@ -1634,7 +1634,7 @@ private: | |||||
| const auto channelIndex = address.getChannel() != ci::ChannelInGroup::wholeGroup | const auto channelIndex = address.getChannel() != ci::ChannelInGroup::wholeGroup | ||||
| ? (size_t) address.getChannel() | ? (size_t) address.getChannel() | ||||
| : 16; | : 16; | ||||
| const auto buttonIndex = address.getGroup() * numChannelColumns + channelIndex; | |||||
| const auto buttonIndex = (size_t) address.getGroup() * numChannelColumns + channelIndex; | |||||
| return buttons[buttonIndex]; | return buttons[buttonIndex]; | ||||
| } | } | ||||
| @@ -250,7 +250,7 @@ std::vector<std::byte> Encodings::decode (Span<const std::byte> bytes, Encoding | |||||
| return {}; | return {}; | ||||
| } | } | ||||
| result.resize (previousSize + (size_t) read); | |||||
| result.resize ((size_t) read + previousSize); | |||||
| if (read == 0) | if (read == 0) | ||||
| return result; | return result; | ||||
| @@ -316,7 +316,7 @@ namespace Message | |||||
| { | { | ||||
| auto tie() const | auto tie() const | ||||
| { | { | ||||
| return std::tuple(); | |||||
| return std::tuple<>(); | |||||
| } | } | ||||
| bool operator== (const ProfileInquiry& x) const { return tie() == x.tie(); } | bool operator== (const ProfileInquiry& x) const { return tie() == x.tie(); } | ||||
| @@ -655,7 +655,7 @@ namespace Message | |||||
| { | { | ||||
| auto tie() const | auto tie() const | ||||
| { | { | ||||
| return std::tuple(); | |||||
| return std::tuple<>(); | |||||
| } | } | ||||
| bool operator== (const ProcessInquiry& x) const { return tie() == x.tie(); } | bool operator== (const ProcessInquiry& x) const { return tie() == x.tie(); } | ||||
| @@ -710,7 +710,7 @@ namespace Message | |||||
| { | { | ||||
| auto tie() const | auto tie() const | ||||
| { | { | ||||
| return std::tuple(); | |||||
| return std::tuple<>(); | |||||
| } | } | ||||
| bool operator== (const ProcessEndMidiMessageReport& x) const { return tie() == x.tie(); } | 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()); | 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 | // ...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 | } // namespace juce::midi_ci::detail | ||||