13
0

avoid compiler warning (timestamp is unsigned and is thus always >= 0

This commit is contained in:
Paul Davis 2018-05-04 08:23:29 -04:00
parent 37a9803542
commit 1f9963cd56

View File

@ -159,7 +159,7 @@ MidiPort::get_midi_buffer (pframes_t nframes)
/* adjust timestamp to match current cycle */
timestamp -= _global_port_buffer_offset;
assert (timestamp >= 0 && timestamp < nframes);
assert (timestamp < nframes);
if ((buf[0] & 0xF0) == 0x90 && buf[2] == 0) {
/* normalize note on with velocity 0 to proper note off */