Changeset 3012 for trunk/external-alma


Ignore:
Timestamp:
11/11/14 16:03:04 (10 years ago)
Author:
WataruKawasaki
Message:

New Development: No

JIRA Issue: Yes CAS-6985

Ready for Test: Yes

Interface Changes: No

What Interface Changed:

Test Programs:

Put in Release Notes: No

Module(s): sd

Description: modified NRODataset::fillRecord() so that ASAP can correctly access NRO data larger than 232 bytes.


File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/external-alma/atnf/PKSIO/NRODataset.cc

    r2785 r3012  
    10061006
    10071007  // fill NRODataset
    1008   long offset = getDataSize() + scanLen_ * i ;
     1008  long offset = (long)getDataSize() + (long)scanLen_ * (long)i ;
    10091009  // DEBUG
    10101010  //cout << "NRODataset::fillRecord()  offset (header) = " << offset << endl ;
     
    16091609int NRODataset::getScanNum()
    16101610{
    1611   long offset = getDataSize() + scanLen_ * NSCAN * ARYNM ;
     1611  long offset = (long)getDataSize() + (long)scanLen_ * (long)NSCAN * (long)ARYNM ;
    16121612  fseek( fp_, offset, SEEK_SET ) ;
    16131613  // try to read data
Note: See TracChangeset for help on using the changeset viewer.