Changeset 16844


Ignore:
Timestamp:
06/14/13 14:20:21 (11 years ago)
Author:
lyard
Message:
fixed checksum calculation while reading... hopefully
Location:
trunk/Mars/mcore
Files:
2 edited

Legend:

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

    r16815 r16844  
    744744    virtual void WriteRowToCopyFile(size_t row)
    745745    {
    746         if (row==fRow+1 && !fTable.isCompressed)
     746        if (row==fRow+1)
    747747        {
    748748            const uint8_t offset = (row*fTable.bytes_per_row)%4;
  • trunk/Mars/mcore/zfits.h

    r16840 r16844  
    259259    //overrides fits.h method with empty one
    260260    //work is done in ReadBinaryRow because it requires volatile data from ReadBinaryRow
    261     virtual void WriteRowToCopyFile(size_t )
    262     {
    263 
     261    virtual void WriteRowToCopyFile(size_t row)
     262    {
     263        if (row == fRow+1)
     264            fChkData.add(fBufferRow);
    264265    }
    265266
     
    288289            read(fCompressedBuffer.data(), sizeToRead);
    289290
    290             if (fCurrentRow == previousRow+1 &&
     291            if (requestedTile == currentTile+1 &&
    291292                fCopy.is_open() &&
    292293                fCopy.good())
Note: See TracChangeset for help on using the changeset viewer.