summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorDavid Robillard <d@drobilla.net>2012-05-29 02:23:58 +0000
committerDavid Robillard <d@drobilla.net>2012-05-29 02:23:58 +0000
commit227df4d7e475de8ca69c498984ae12e61c3324ec (patch)
treeaec52e9ddee6d278f38ded2ca836bea31a648373
parent3c92d170d4d79ed43e50d9c38e7a1e3b272eb88c (diff)
downloadingen-227df4d7e475de8ca69c498984ae12e61c3324ec.tar.gz
ingen-227df4d7e475de8ca69c498984ae12e61c3324ec.tar.bz2
ingen-227df4d7e475de8ca69c498984ae12e61c3324ec.zip
Use appropriate type for port count.
git-svn-id: http://svn.drobilla.net/lad/trunk/ingen@4472 a436a847-0d15-0410-975c-d299462d15a1
-rw-r--r--src/server/NodeImpl.cpp8
1 files changed, 4 insertions, 4 deletions
diff --git a/src/server/NodeImpl.cpp b/src/server/NodeImpl.cpp
index a260f6ca..b6b3b564 100644
--- a/src/server/NodeImpl.cpp
+++ b/src/server/NodeImpl.cpp
@@ -123,7 +123,7 @@ NodeImpl::prepare_poly(BufferFactory& bufs, uint32_t poly)
poly = 1;
if (_ports)
- for (size_t i = 0; i < _ports->size(); ++i)
+ for (uint32_t i = 0; i < _ports->size(); ++i)
_ports->at(i)->prepare_poly(bufs, poly);
return true;
@@ -138,7 +138,7 @@ NodeImpl::apply_poly(ProcessContext& context, Raul::Maid& maid, uint32_t poly)
_polyphony = poly;
if (_ports)
- for (size_t i = 0; i < num_ports(); ++i)
+ for (uint32_t i = 0; i < num_ports(); ++i)
_ports->at(i)->apply_poly(context, maid, poly);
return true;
@@ -151,7 +151,7 @@ NodeImpl::set_buffer_size(Context& context,
uint32_t size)
{
if (_ports) {
- for (size_t i = 0; i < _ports->size(); ++i) {
+ for (uint32_t i = 0; i < _ports->size(); ++i) {
PortImpl* const p = _ports->at(i);
if (p->buffer_type() == type) {
p->set_buffer_size(context, bufs, size);
@@ -215,7 +215,7 @@ void
NodeImpl::post_process(ProcessContext& context)
{
// Write output ports
- for (size_t i = 0; _ports && i < _ports->size(); ++i) {
+ for (uint32_t i = 0; _ports && i < _ports->size(); ++i) {
_ports->at(i)->post_process(context);
}
}