diff audioDB.cpp @ 62:9379253c3f78

Fix tests/0004 by initializing the distance vector for point queries with -DBL_MAX rather than 0.0.
author mas01cr
date Thu, 20 Sep 2007 14:29:30 +0000
parents 3e80b146c07c
children 128f065fd250
line wrap: on
line diff
--- a/audioDB.cpp	Thu Sep 20 14:29:03 2007 +0000
+++ b/audioDB.cpp	Thu Sep 20 14:29:30 2007 +0000
@@ -1050,7 +1050,7 @@
   unsigned qIndexes[pointNN];
   unsigned sIndexes[pointNN];
   for(unsigned k=0; k<pointNN; k++){
-    distances[k]=0.0;
+    distances[k]=-DBL_MAX;
     qIndexes[k]=~0;
     sIndexes[k]=~0;    
   }