Changeset 12639 for trunk/FACT++/src


Ignore:
Timestamp:
11/24/11 15:53:41 (13 years ago)
Author:
tbretz
Message:
Fixed a compiler warning.
File:
1 edited

Legend:

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

    r12636 r12639  
    316316    }
    317317
     318    const double tm = *reinterpret_cast<double*>(fStandardPointers[0]);
     319
    318320    //the first standard variable is the current MjD
    319321    if (fEndMjD==0)
    320322    {
    321323        // FIXME: Check error?
    322         const double time = *reinterpret_cast<double*>(fStandardPointers[0]);
    323 
    324         fFile->WriteKeyNT("TSTARTI", uint32_t(floor(time)),    "Time when first event received (integral part)");
    325         fFile->WriteKeyNT("TSTARTF", fmod(time, 1),            "Time when first event received (fractional part)");
     324        fFile->WriteKeyNT("TSTARTI", uint32_t(floor(tm)),      "Time when first event received (integral part)");
     325        fFile->WriteKeyNT("TSTARTF", fmod(tm, 1),              "Time when first event received (fractional part)");
    326326        fFile->WriteKeyNT("TSTOPI",  uint32_t(floor(fEndMjD)), "Time when last event received (integral part)");
    327327        fFile->WriteKeyNT("TSTOPF",  fmod(fEndMjD, 1),         "Time when last event received (fractional part)");
    328328
    329         fFile->WriteKeyNT("DATE-OBS", Time(time+40587).Iso(),
     329        fFile->WriteKeyNT("DATE-OBS", Time(tm+40587).Iso(),
    330330                          "Time when first event received");
    331331
     
    333333                          "Time when last event received");
    334334    }
    335     fEndMjD = time;
     335
     336    fEndMjD = tm;
    336337
    337338    return true;
Note: See TracChangeset for help on using the changeset viewer.