From ce076784a47d6322282763a69ace368db4ba735a Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Sun, 6 Apr 2014 08:33:25 +0100 Subject: [PATCH 1/2] 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 Date: Fri, 11 Apr 2014 23:47:51 +0200 Subject: [PATCH 2/2] Granulate.cpp: change variable types from std::vector::size_type to size_t --- src/Granulate.cpp | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/Granulate.cpp b/src/Granulate.cpp index cce2dc5..a654159 100644 --- a/src/Granulate.cpp +++ b/src/Granulate.cpp @@ -106,8 +106,8 @@ void Granulate :: reset( void ) gPointer_ = 0; // Reset grain parameters. - std::vector::size_type count; - std::vector::size_type nVoices = (unsigned int)grains_.size(); + size_t count; + size_t nVoices = (unsigned int)grains_.size(); for ( unsigned int i=0; i::size_type oldSize = grains_.size(); + size_t oldSize = grains_.size(); grains_.resize( nVoices ); // Initialize new grain voices. - std::vector::size_type count; - for ( std::vector::size_type i=oldSize; i