Changeset 16287 for trunk/Mars/mcore


Ignore:
Timestamp:
05/27/13 13:58:51 (11 years ago)
Author:
lyard
Message:
got rid of a cast on tellg
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcore/fits.h

    r16284 r16287  
    573573        const size_t rowWidth = currentTable.Get<size_t>("NAXIS1");
    574574        const size_t numRows  = currentTable.Get<size_t>("NAXIS2");
     575        const off_t  numTableBytes = rowWidth*numRows;
    575576
    576577        //get offset of special data area from start of main table
     
    584585        paddingSize += (paddingSize==0) ? 0 : 2880 - paddingSize;
    585586
    586         const off_t whereDoIGo = tellg() + (off_t)(rowWidth*numRows) + heapSize + heapShift + paddingSize;
     587        const off_t whereDoIGo = tellg() + numTableBytes + heapSize + heapShift + paddingSize;
    587588        seekg(whereDoIGo);
    588589
Note: See TracChangeset for help on using the changeset viewer.