Mercurial > hg > qm-dsp
diff dsp/onsets/DetectionFunction.cpp @ 102:37449f085a4c
Fix compiler warnings
author | Chris Cannam |
---|---|
date | Thu, 13 Jun 2013 10:23:09 +0100 |
parents | e5907ae6de17 |
children | f976d7609700 |
line wrap: on
line diff
--- a/dsp/onsets/DetectionFunction.cpp Tue Feb 12 17:46:47 2013 +0000 +++ b/dsp/onsets/DetectionFunction.cpp Thu Jun 13 10:23:09 2013 +0100 @@ -102,10 +102,10 @@ int actualLength = MathUtilities::previousPowerOfTwo(m_dataLength); - if (actualLength != m_dataLength) { + if (actualLength != (int)m_dataLength) { // Pre-fill mag and phase vectors with zero, as the FFT output // will not fill the arrays - for (int i = actualLength/2; i < m_dataLength/2; ++i) { + for (int i = actualLength/2; i < (int)m_dataLength/2; ++i) { m_magnitude[i] = 0; m_thetaAngle[0] = 0; }