From 683d948e0c45b3b3026d00afbcf9a49e7e89d8ea Mon Sep 17 00:00:00 2001 From: Vitaly Novichkov Date: Wed, 11 Jul 2018 02:46:16 +0300 Subject: Fixed Watcom build --- src/midi_sequencer_impl.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src') diff --git a/src/midi_sequencer_impl.hpp b/src/midi_sequencer_impl.hpp index 7a6e30b..4d5217a 100644 --- a/src/midi_sequencer_impl.hpp +++ b/src/midi_sequencer_impl.hpp @@ -1248,7 +1248,7 @@ BW_MidiSequencer::MidiEvent BW_MidiSequencer::parseEvent(const uint8_t **pptr, c return evt; } - if(!data.compare(0, 10, "loopstart=")) + if(data.substr(0, 10) == "loopstart=") { evt.type = MidiEvent::T_SPECIAL; evt.subtype = MidiEvent::ST_LOOPSTACK_BEGIN; @@ -1269,7 +1269,7 @@ BW_MidiSequencer::MidiEvent BW_MidiSequencer::parseEvent(const uint8_t **pptr, c return evt; } - if(!data.compare(0, 8, "loopend=")) + if(data.substr(0, 8) == "loopend=") { evt.type = MidiEvent::T_SPECIAL; evt.subtype = MidiEvent::ST_LOOPSTACK_END; -- cgit v1.2.3