# HG changeset patch # User mas01cr # Date 1190289191 0 # Node ID 7e18b5adce8cd99ca860a42eb2054270d9cf40bd # Parent 67de6f2c5f7d94f4efb72162179a3f3a400670da Delete some (wrong) FIXME notes about off-by-one errors. diff -r 67de6f2c5f7d -r 7e18b5adce8c audioDB.cpp --- a/audioDB.cpp Thu Sep 20 11:30:24 2007 +0000 +++ b/audioDB.cpp Thu Sep 20 11:53:11 2007 +0000 @@ -1801,7 +1801,7 @@ thisDist=1000000.0; // k-NN match algorithm - m=pointNN; /* FIXME: -1? distances[pointNN] */ + m=pointNN; while(m--){ if(thisDist<=distances[m]) if(m==0 || thisDist>=distances[m-1]){ @@ -1835,7 +1835,7 @@ // All the track stuff goes here - n=trackNN; /* FIXME: trackNN-1 */ + n=trackNN; while(n--){ if(thisDist<=trackDistances[n]){ if((n==0 || thisDist>=trackDistances[n-1])){