From 46eff0830c8894997fb624733fadcea9c6d74812 Mon Sep 17 00:00:00 2001 From: David Robillard Date: Fri, 10 Aug 2012 23:27:30 +0000 Subject: Use the usual semantics for 'end' for Buffer::set_block, which in addition to actually making sense, allows GCC to optimize the loop. git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4650 a436a847-0d15-0410-975c-d299462d15a1 --- src/server/events/Disconnect.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/server/events') diff --git a/src/server/events/Disconnect.cpp b/src/server/events/Disconnect.cpp index c84dd7a3..6ee86eed 100644 --- a/src/server/events/Disconnect.cpp +++ b/src/server/events/Disconnect.cpp @@ -101,7 +101,7 @@ Disconnect::Impl::Impl(Engine& e, for (uint32_t i = 0; i < _buffers->size(); ++i) { if (is_control) { Buffer* buf = _buffers->at(i).get(); - buf->set_block(value, 0, buf->nframes() - 1); + buf->set_block(value, 0, buf->nframes()); } else { _buffers->at(i)->clear(); } -- cgit v1.2.1