diff options
author | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-28 15:18:52 +0000 |
---|---|---|
committer | Paul Davis <paul@linuxaudiosystems.com> | 2013-01-28 15:18:52 +0000 |
commit | 0d7ee3fbd36ed735b17098adb5b35d1ab2927e52 (patch) | |
tree | b30cade3150bbc4fe1d368ef25ffd7858b7f1dc5 /libs/ardour/midi_ring_buffer.cc | |
parent | 5a568b0e315169fb35079459f360228d6e30ce9a (diff) |
fix another semantically-significant statement buried in an assert() macro
git-svn-id: svn://localhost/ardour2/branches/3.0@14020 d708f5d6-7413-0410-9779-e7cbd77b26cf
Diffstat (limited to 'libs/ardour/midi_ring_buffer.cc')
-rw-r--r-- | libs/ardour/midi_ring_buffer.cc | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/libs/ardour/midi_ring_buffer.cc b/libs/ardour/midi_ring_buffer.cc index 3968439e75..db3a4cb109 100644 --- a/libs/ardour/midi_ring_buffer.cc +++ b/libs/ardour/midi_ring_buffer.cc @@ -78,7 +78,8 @@ MidiRingBuffer<T>::read(MidiBuffer& dst, framepos_t start, framepos_t end, frame this->increment_read_ptr (prefix_size); uint8_t status; - assert (this->peek (&status, sizeof(uint8_t))); // If this failed, buffer is corrupt, all hope is lost + bool r = this->peek (&status, sizeof(uint8_t)); + assert (r); // If this failed, buffer is corrupt, all hope is lost // Ignore event if it doesn't match channel filter if (is_channel_event(status) && get_channel_mode() == FilterChannels) { |