avoid compiler warning (timestamp is unsigned and is thus always >= 0
authorPaul Davis <paul@linuxaudiosystems.com>
Fri, 4 May 2018 12:23:29 +0000 (08:23 -0400)
committerPaul Davis <paul@linuxaudiosystems.com>
Fri, 4 May 2018 12:25:04 +0000 (08:25 -0400)
libs/ardour/midi_port.cc

index 1aaa25ad7028a205b714222aec0e7a59c497215a..dfc1c37e8720d3f827d885aa13dffe41332797ab 100644 (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 */