From 1f9963cd561e1d11301cbf9c9d2294bb30644fe9 Mon Sep 17 00:00:00 2001 From: Paul Davis Date: Fri, 4 May 2018 08:23:29 -0400 Subject: [PATCH] avoid compiler warning (timestamp is unsigned and is thus always >= 0 --- libs/ardour/midi_port.cc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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 */