Index: /trunk/Ohana/src/opihi/dvo/find_matches.c
===================================================================
--- /trunk/Ohana/src/opihi/dvo/find_matches.c	(revision 29758)
+++ /trunk/Ohana/src/opihi/dvo/find_matches.c	(revision 29759)
@@ -80,5 +80,7 @@
   /* build spatial index (RA sort) referencing input array sequence */
   for (i = 0; i < Npoints; i++) {
-    X1[i] = Y1[i] = NAN;
+    // we need to have a finite number for the sort below; index == -1 entries are skipped
+    // in the matching process
+    X1[i] = Y1[i] = 0.0; 
     N1[i] = i;
     if (index[i] == -1) continue;
