Skip to content

Commit

Permalink
MidiClip_fix_casting_error
Browse files Browse the repository at this point in the history
  • Loading branch information
szeli1 committed Jul 23, 2024
1 parent 46a5bfa commit d18ffb2
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/tracks/MidiClip.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -474,7 +474,7 @@ MidiClip * MidiClip::adjacentMidiClipByOffset(int offset) const
{
auto& clips = m_instrumentTrack->getClips();
int clipNum = m_instrumentTrack->getClipNum(this);
if (clipNum + offset < 0 || clipNum + offset > clips.size() - 1) { return nullptr; }
if (clipNum + offset < 0 || clipNum + offset > static_cast<int>(clips.size() - 1)) { return nullptr; }
return dynamic_cast<MidiClip*>(clips[clipNum + offset]);
}

Expand Down

0 comments on commit d18ffb2

Please sign in to comment.