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