Changeset 19341


Ignore:
Timestamp:
10/30/18 17:55:27 (6 years ago)
Author:
tbretz
Message:
Block length in number fo floats.
Location:
trunk/Mars/mcorsika
Files:
2 edited

Legend:

Unmodified
Added
Removed
  • trunk/Mars/mcorsika/MCorsikaEvtHeader.cc

    r19336 r19341  
    181181{
    182182    vector<Float_t> f(blockLength);
    183     if (!fInFormat->Read(f.data(), blockLength))
     183    if (!fInFormat->Read(f.data(), blockLength*sizeof(Float_t)))
    184184        return kERROR;
    185185
  • trunk/Mars/mcorsika/MCorsikaRunHeader.cc

    r19332 r19341  
    9999{
    100100    vector<Float_t> f(blockLength);
    101     if (!fInFormat->Read(f.data(), blockLength))
     101    if (!fInFormat->Read(f.data(), blockLength*sizeof(Float_t)))
    102102        return kFALSE;
    103103
Note: See TracChangeset for help on using the changeset viewer.