Changeset 19341


Ignore:
Timestamp:
Oct 30, 2018, 5:55:27 PM (3 months 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.