Changeset 16287 for trunk/Mars/mcore/fits.h
- Timestamp:
- 05/27/13 13:58:51 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Mars/mcore/fits.h
r16284 r16287 573 573 const size_t rowWidth = currentTable.Get<size_t>("NAXIS1"); 574 574 const size_t numRows = currentTable.Get<size_t>("NAXIS2"); 575 const off_t numTableBytes = rowWidth*numRows; 575 576 576 577 //get offset of special data area from start of main table … … 584 585 paddingSize += (paddingSize==0) ? 0 : 2880 - paddingSize; 585 586 586 const off_t whereDoIGo = tellg() + (off_t)(rowWidth*numRows)+ heapSize + heapShift + paddingSize;587 const off_t whereDoIGo = tellg() + numTableBytes + heapSize + heapShift + paddingSize; 587 588 seekg(whereDoIGo); 588 589
Note:
See TracChangeset
for help on using the changeset viewer.