Changeset 20067


Ignore:
Timestamp:
04/12/21 14:44:29 (2 months ago)
Author:
tbretz
Message:
That is a better solution.
Location:
trunk
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/FACT++/src/fixfits.cc

    r20061 r20067  
    535535    fout.seekp(header["CHECKSUM"], ios::beg);
    536536    //fout.seekg(header["CHECKSUM"], ios::beg);
    537     fout << left << setw(20) << string("'" + to_string(fits2.GetChecksum()) +  "'");
     537    fout << left << setw(20) << string("'" + fits2.GetChecksum().str() +  "'");
    538538
    539539    fout.close();
  • trunk/Mars/mcore/fits.h

    r20062 r20067  
    10491049    bool IsHeaderOk() const { return fTable.datasum<0?false:(fChkHeader+Checksum(fTable.datasum)).valid(); }
    10501050    virtual bool IsFileOk() const { return (fChkHeader+fChkData).valid(); }
    1051     uint32_t GetChecksum() const { return (fChkHeader+fChkData).val(); }
     1051    Checksum GetChecksum() const { return fChkHeader+Checksum(fTable.datasum); }
    10521052
    10531053    bool IsCompressedFITS() const { return fTable.is_compressed;}
Note: See TracChangeset for help on using the changeset viewer.