Changeset 8788 for trunk/psModules/src/objects/pmSourceIO_CMP.c
- Timestamp:
- Sep 11, 2006, 12:28:55 PM (20 years ago)
- File:
-
- 1 edited
-
trunk/psModules/src/objects/pmSourceIO_CMP.c (modified) (3 diffs)
Legend:
- Unmodified
- Added
- Removed
-
trunk/psModules/src/objects/pmSourceIO_CMP.c
r8787 r8788 3 3 * @author EAM, IfA 4 4 * 5 * @version $Revision: 1.1 0$ $Name: not supported by cvs2svn $6 * @date $Date: 2006-09-11 22:2 0:16$5 * @version $Revision: 1.11 $ $Name: not supported by cvs2svn $ 6 * @date $Date: 2006-09-11 22:28:55 $ 7 7 * 8 8 * Copyright 2004 Maui High Performance Computing Center, University of Hawaii … … 164 164 165 165 // how many lines in the header? 166 intnLines = header->list->n;167 int nBytes = nLines * 80;166 long nLines = header->list->n; 167 off_t nBytes = nLines * 80; 168 168 if (nBytes % 2880) { 169 int nBlock = 1 + (int)(nBytes / 2880);169 off_t nBlock = 1 + (off_t)(nBytes / 2880); 170 170 nBytes = nBlock * 2880; 171 171 } … … 191 191 while (true) { 192 192 /* load next data block */ 193 int Nbytes = BYTES_STAR * BLOCK - Nextra; 194 int nbytes = fread (&buffer[Nextra], 1, Nbytes, f); 193 // XXX fix the use of two vars with different case -JH 194 off_t Nbytes = BYTES_STAR * BLOCK - Nextra; 195 off_t nbytes = fread (&buffer[Nextra], 1, Nbytes, f); 195 196 if (nbytes == 0) { 196 197 goto done_load;
Note:
See TracChangeset
for help on using the changeset viewer.
