fix another semantically-significant statement buried in an assert() macro
authorPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Jan 2013 15:18:52 +0000 (15:18 +0000)
committerPaul Davis <paul@linuxaudiosystems.com>
Mon, 28 Jan 2013 15:18:52 +0000 (15:18 +0000)
git-svn-id: svn://localhost/ardour2/branches/3.0@14020 d708f5d6-7413-0410-9779-e7cbd77b26cf

libs/ardour/midi_ring_buffer.cc

index 3968439e750085f34c0ca02bdb34a2884a7fe620..db3a4cb1090f8c414503d9a673d7c1e4643aee13 100644 (file)
@@ -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) {