projects
/
ardour.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
37a9803
)
avoid compiler warning (timestamp is unsigned and is thus always >= 0
author
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 4 May 2018 12:23:29 +0000
(08:23 -0400)
committer
Paul Davis
<paul@linuxaudiosystems.com>
Fri, 4 May 2018 12:25:04 +0000
(08:25 -0400)
libs/ardour/midi_port.cc
patch
|
blob
|
history
diff --git
a/libs/ardour/midi_port.cc
b/libs/ardour/midi_port.cc
index 1aaa25ad7028a205b714222aec0e7a59c497215a..dfc1c37e8720d3f827d885aa13dffe41332797ab 100644
(file)
--- 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 */