Index: trunk/psphot/src/psphotSourceFits.c
===================================================================
--- trunk/psphot/src/psphotSourceFits.c	(revision 8470)
+++ trunk/psphot/src/psphotSourceFits.c	(revision 8672)
@@ -79,5 +79,5 @@
 	// if this one failed, skip it
 	if (!psphotEvalPSF (blend, model)) {
-	    psTrace ("psphot.blend", 5, "failed on blend %d of %d\n", i, modelSet->n);
+	    psTrace ("psphot.blend", 5, "failed on blend %d of %ld\n", i, modelSet->n);
 	    continue;
 	}
@@ -96,5 +96,5 @@
     // evaluate the primary object
     if (!psphotEvalPSF (source, PSF)) {
-	psTrace ("psphot.blend", 5, "failed on blend 0 of %d\n", modelSet->n);
+	psTrace ("psphot.blend", 5, "failed on blend 0 of %ld\n", modelSet->n);
 	psFree (PSF);
 	return false;
