Index: trunk/psphot/src/psphotSourceMatch.c
===================================================================
--- trunk/psphot/src/psphotSourceMatch.c	(revision 30624)
+++ trunk/psphot/src/psphotSourceMatch.c	(revision 31154)
@@ -86,10 +86,10 @@
         if (!src) NEXT1; 
         if (!src->peak) NEXT1; 
-        if (!finite(src->peak->xf)) NEXT1; 
-        if (!finite(src->peak->yf)) NEXT1; 
+        if (!isfinite(src->peak->xf)) NEXT1; 
+        if (!isfinite(src->peak->yf)) NEXT1; 
  
         if (!obj) NEXT2; 
-        if (!finite(obj->x)) NEXT2; 
-        if (!finite(obj->y)) NEXT2; 
+        if (!isfinite(obj->x)) NEXT2; 
+        if (!isfinite(obj->y)) NEXT2; 
  
         dx = src->peak->xf - obj->x; 
@@ -229,10 +229,7 @@
 	    int col0 = readout->image->col0;
 
-	    // XXX the peak type is not really used in psphot
-	    // PM_PEAK_LONE is certainly not true, but irrelevant
+	    // The peak type is not used in psphot. PM_PEAK_LONE may be wrong, but irrelevant
 	    float peakFlux = readout->image->data.F32[(int)(obj->y-row0-0.5)][(int)(obj->x-col0-0.5)];
 	    pmPeak *peak = pmPeakAlloc(obj->x, obj->y, peakFlux, PM_PEAK_LONE);
-	    peak->flux = peakFlux;
-	    peak->SN = 1.0;
 	    peak->xf = obj->x;
 	    peak->yf = obj->y;
