diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2018-05-04 08:23:29 -0400 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2018-05-04 08:25:04 -0400 |
commit | 1f9963cd561e1d11301cbf9c9d2294bb30644fe9 (patch) | |
tree | 15f76524313b6be3517ff967428975526dbddc65 /libs/ardour/midi_port.cc | |
parent | 37a9803542565f6c59e44c915a5e393b875ee5b5 (diff) |
avoid compiler warning (timestamp is unsigned and is thus always >= 0
Diffstat (limited to 'libs/ardour/midi_port.cc')
-rw-r--r-- | libs/ardour/midi_port.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/libs/ardour/midi_port.cc b/libs/ardour/midi_port.cc index 1aaa25ad70..dfc1c37e87 100644 --- a/libs/ardour/midi_port.cc +++ b/libs/ardour/midi_port.cc @@ -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 */ |