IPP Software Navigation Tools IPP Links Communication Pan-STARRS Links

Ignore:
Timestamp:
Sep 11, 2006, 12:28:55 PM (20 years ago)
Author:
jhoblitt
Message:

use off_t instead of int where appropriate

File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/psModules/src/objects/pmSourceIO_CMP.c

    r8787 r8788  
    33 *  @author EAM, IfA
    44 *
    5  *  @version $Revision: 1.10 $ $Name: not supported by cvs2svn $
    6  *  @date $Date: 2006-09-11 22:20:16 $
     5 *  @version $Revision: 1.11 $ $Name: not supported by cvs2svn $
     6 *  @date $Date: 2006-09-11 22:28:55 $
    77 *
    88 *  Copyright 2004 Maui High Performance Computing Center, University of Hawaii
     
    164164
    165165    // how many lines in the header?
    166     int nLines = header->list->n;
    167     int nBytes = nLines * 80;
     166    long nLines = header->list->n;
     167    off_t nBytes = nLines * 80;
    168168    if (nBytes % 2880) {
    169         int nBlock = 1 + (int)(nBytes / 2880);
     169        off_t nBlock = 1 + (off_t)(nBytes / 2880);
    170170        nBytes = nBlock * 2880;
    171171    }
     
    191191    while (true) {
    192192        /* 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);
    195196        if (nbytes == 0) {
    196197            goto done_load;
Note: See TracChangeset for help on using the changeset viewer.