summaryrefslogtreecommitdiffstats
path: root/src/server/events
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-08-10 23:27:30 +0000
committerDavid Robillard <d@drobilla.net>2012-08-10 23:27:30 +0000
commit46eff0830c8894997fb624733fadcea9c6d74812 (patch)
treea804a37965ee6531cd9934d5957ff8c51420ebb0 /src/server/events
parent2f03ac2d3e83563eacbacd4e17b4059605dc58b4 (diff)
downloadingen-46eff0830c8894997fb624733fadcea9c6d74812.tar.gz
ingen-46eff0830c8894997fb624733fadcea9c6d74812.tar.bz2
ingen-46eff0830c8894997fb624733fadcea9c6d74812.zip
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
Diffstat (limited to 'src/server/events')
-rw-r--r--src/server/events/Disconnect.cpp2
1 files changed, 1 insertions, 1 deletions
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();
}