Skip to content

Commit

Permalink
fix bug in constructor dealing with first event
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Aug 14, 2024
1 parent ed15680 commit 199db95
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/libsrc++/EventWriterV4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -359,6 +359,7 @@ namespace evio {
firstEventBuf->order(byteOrder);
firstEvent->write(firstEventBuf);
// copy data into vector
firstEventByteArray.resize(firstEventBytes);
std::copy(firstEventBuf->array(), firstEventBuf->array() + firstEventBytes, firstEventByteArray.begin());
commonBlockByteSize += firstEventBytes;
commonBlockCount++;
Expand Down

0 comments on commit 199db95

Please sign in to comment.