Index: trunk/ippTools/src/p2updatePending.c
===================================================================
--- trunk/ippTools/src/p2updatePending.c	(revision 6978)
+++ trunk/ippTools/src/p2updatePending.c	(revision 8062)
@@ -18,5 +18,5 @@
     // we will now select all of the matching images which are done
     psMetadataAddS32 (where, PS_LIST_TAIL, "STATE", PS_META_REPLACE, "==", PX_MODE_DONE);
-    for (int i = 0; i < exposures->n; i++) {
+    for (long i = 0; i < exposures->n; i++) {
 	p2PendingExpRow *exposure = exposures->data[i];
 
