Index: /trunk/psModules/src/objects/pmSourceIO_CMP.c
===================================================================
--- /trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 8787)
+++ /trunk/psModules/src/objects/pmSourceIO_CMP.c	(revision 8788)
@@ -3,6 +3,6 @@
  *  @author EAM, IfA
  *
- *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
- *  @date $Date: 2006-09-11 22:20:16 $
+ *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
+ *  @date $Date: 2006-09-11 22:28:55 $
  *
  *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
@@ -164,8 +164,8 @@
 
     // how many lines in the header?
-    int nLines = header->list->n;
-    int nBytes = nLines * 80;
+    long nLines = header->list->n;
+    off_t nBytes = nLines * 80;
     if (nBytes % 2880) {
-        int nBlock = 1 + (int)(nBytes / 2880);
+        off_t nBlock = 1 + (off_t)(nBytes / 2880);
         nBytes = nBlock * 2880;
     }
@@ -191,6 +191,7 @@
     while (true) {
         /* load next data block */
-        int Nbytes = BYTES_STAR * BLOCK - Nextra;
-        int nbytes = fread (&buffer[Nextra], 1, Nbytes, f);
+        // XXX fix the use of two vars with different case -JH
+        off_t Nbytes = BYTES_STAR * BLOCK - Nextra;
+        off_t nbytes = fread (&buffer[Nextra], 1, Nbytes, f);
         if (nbytes == 0) {
             goto done_load;
