From b2cefb3b5354bf0cf487bc018463fc41228a3b20 Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Sun, 6 Apr 2014 08:24:32 +0100 Subject: [PATCH] TapDelay: fix variable types --- include/TapDelay.h | 12 ++++++++---- src/TapDelay.cpp | 2 +- 2 files changed, 9 insertions(+), 5 deletions(-) diff --git a/include/TapDelay.h b/include/TapDelay.h index 1ce6010..e816673 100644 --- a/include/TapDelay.h +++ b/include/TapDelay.h @@ -166,8 +166,10 @@ inline StkFrames& TapDelay :: tick( StkFrames& frames, unsigned int channel ) StkFloat *iSamples = &frames[channel]; StkFloat *oSamples = &frames[0]; - unsigned int j, iHop = frames.channels(), oHop = frames.channels() - outPoint_.size(); - for ( unsigned int i=0; i taps ) if ( taps.size() != outPoint_.size() ) { outPoint_.resize( taps.size() ); delays_.resize( taps.size() ); - lastFrame_.resize( 1, taps.size(), 0.0 ); + lastFrame_.resize( 1, (unsigned int)taps.size(), 0.0 ); } for ( unsigned int i=0; i