From ce076784a47d6322282763a69ace368db4ba735a Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Sun, 6 Apr 2014 08:33:25 +0100 Subject: [PATCH] Fix variable types in Granulate --- src/Granulate.cpp | 15 ++++++++------- 1 file changed, 8 insertions(+), 7 deletions(-) diff --git a/src/Granulate.cpp b/src/Granulate.cpp index f15515c..cce2dc5 100644 --- a/src/Granulate.cpp +++ b/src/Granulate.cpp @@ -106,10 +106,11 @@ void Granulate :: reset( void ) gPointer_ = 0; // Reset grain parameters. - unsigned int count, nVoices = grains_.size(); + std::vector::size_type count; + std::vector::size_type nVoices = (unsigned int)grains_.size(); for ( unsigned int i=0; i::size_type oldSize = grains_.size(); grains_.resize( nVoices ); // Initialize new grain voices. - unsigned int count; - for ( unsigned int i=oldSize; i::size_type count; + for ( std::vector::size_type i=oldSize; i