changeset 45:68812db649e6 tony

fixed nasty integer comparison bug, but it's still a hack
author matthiasm
date Wed, 05 Feb 2014 11:25:35 +0000
parents e5ccda2c06d9
children e17206dafa65
files LocalCandidatePYIN.cpp
diffstat 1 files changed, 1 insertions(+), 1 deletions(-) [+]
line wrap: on
line diff
--- a/LocalCandidatePYIN.cpp	Tue Feb 04 22:31:26 2014 +0000
+++ b/LocalCandidatePYIN.cpp	Wed Feb 05 11:25:35 2014 +0000
@@ -349,7 +349,7 @@
         {
             if (mpOut[iFrame] > 0) {
                 if (prevFreq>0 && fabs(log2(mpOut[iFrame]/prevFreq)) > 0.1) {
-                    for (size_t jFrame = iFrame; jFrame != -1; --jFrame) {
+                    for (int jFrame = iFrame; jFrame != -1; --jFrame) {
                         // hack: setting all freqs to 0 -- will be eliminated later
                         pitchTracks[iCandidate][jFrame] = 0;
                     }