mirror of
https://github.com/sesps/SPS_SABRE_EventBuilder.git
synced 2024-11-22 18:18:52 -05:00
Fix bug in CompassFile where m_nHits is uninitialized for CoMPASS empty (2byte) files
This commit is contained in:
parent
ccd31cda52
commit
c4557c2b26
|
@ -42,6 +42,7 @@ namespace EventBuilder {
|
|||
m_eofFlag = false;
|
||||
m_hitUsedFlag = true;
|
||||
m_filename = filename;
|
||||
m_nHits = 0;
|
||||
m_file->open(m_filename, std::ios::binary | std::ios::in);
|
||||
m_file->seekg(0, std::ios_base::end);
|
||||
m_size = m_file->tellg();
|
||||
|
|
Loading…
Reference in New Issue
Block a user