Skip to content

Commit

Permalink
fix bug in rewind
Browse files Browse the repository at this point in the history
  • Loading branch information
carltimmer committed Aug 28, 2023
1 parent 0511881 commit bff7724
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/libsrc++/EvioReaderV4.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -1236,10 +1236,10 @@ namespace evio {
blockNumberExpected = 1;

if (evioVersion < 4) {
blockHeader = blockHeader4 = std::make_shared<BlockHeaderV4>(firstBlockHeader4);
blockHeader = blockHeader2 = std::make_shared<BlockHeaderV2>(firstBlockHeader2);
}
else {
blockHeader = blockHeader2 = std::make_shared<BlockHeaderV2>(firstBlockHeader2);
blockHeader = blockHeader4 = std::make_shared<BlockHeaderV4>(firstBlockHeader4);
}

blockHeader->setBufferStartingPosition(initialPosition);
Expand Down

0 comments on commit bff7724

Please sign in to comment.