mirror of
https://github.com/Ardour/ardour.git
synced 2025-12-10 16:46:35 +01:00
avoid compiler warning (timestamp is unsigned and is thus always >= 0
This commit is contained in:
parent
37a9803542
commit
1f9963cd56
1 changed files with 1 additions and 1 deletions
|
|
@ -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 */
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue