diff SpectrogramProcessor.cpp @ 24:957b83524c06

* Replacing loop unsigned ints with ints
author Carl Bussey <c.bussey@se10.qmul.ac.uk>
date Tue, 19 Aug 2014 18:20:26 +0100
parents 12b952286959
children fe23998968b4
line wrap: on
line diff
--- a/SpectrogramProcessor.cpp	Tue Aug 19 17:40:10 2014 +0100
+++ b/SpectrogramProcessor.cpp	Tue Aug 19 18:20:26 2014 +0100
@@ -61,11 +61,11 @@
 {
     Spectrogram spectrogram;
     
-    unsigned int readBlockPointerIndex = 0;
-    unsigned int writeBlockPointer = 0;
+    int readBlockPointerIndex = 0;
+    int writeBlockPointer = 0;
     
     //cout << m_hopSize << endl;
-    while(readBlockPointerIndex <= inputLength) {
+    while(readBlockPointerIndex <= (int)inputLength) {
         
         int readPointer = readBlockPointerIndex - m_windowLength/2;
         for (int n = 0; n < (int)m_windowLength; n++){