Index: trunk/ppTranslate/src/ppMopsMerge.c
===================================================================
--- trunk/ppTranslate/src/ppMopsMerge.c	(revision 30629)
+++ trunk/ppTranslate/src/ppMopsMerge.c	(revision 30656)
@@ -22,7 +22,7 @@
     )
 {
-    float dx = detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0;
-    float dy = detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0;
-    return PS_SQR(dx) + PS_SQR(dy);
+  float dx = (float) (detections->x->data.F32[index] - detections->naxis1->data.S32[index] / 2.0);
+  float dy = (float) (detections->y->data.F32[index] - detections->naxis2->data.S32[index] / 2.0);
+  return PS_SQR(dx) + PS_SQR(dy);
 }
 
@@ -170,5 +170,5 @@
     psTrace("ppMops.merge", 2, "%ld sources in merged detections list\n", merged->num);
 
-    merged->seeing /= num;
+    merged->seeing /= (float) num;
 
     return merged;
