diff audioDB.cpp @ 58:7e18b5adce8c

Delete some (wrong) FIXME notes about off-by-one errors.
author mas01cr
date Thu, 20 Sep 2007 11:53:11 +0000
parents 67de6f2c5f7d
children cd851d1fbc62
line wrap: on
line diff
--- 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])){