From 9533f2bc664280457edccbcbfd952c710a2fbc51 Mon Sep 17 00:00:00 2001 From: Ariel Elkin Date: Wed, 8 Apr 2015 02:48:46 +0200 Subject: [PATCH] StkFrames::operator+: cast nFrames to unsigned int given we add it to a value of type unsigned int --- include/Stk.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/Stk.h b/include/Stk.h index 3bd2501..0574c42 100644 --- a/include/Stk.h +++ b/include/Stk.h @@ -495,7 +495,7 @@ inline StkFrames StkFrames::operator+(const StkFrames &f) const Stk::handleError( error.str(), StkError::MEMORY_ACCESS ); } #endif - StkFrames sum(nFrames_,nChannels_); + StkFrames sum((unsigned int)nFrames_,nChannels_); StkFloat *sumPtr = &sum[0]; const StkFloat *fptr = f.data_; const StkFloat *dPtr = data_;