Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Fix state_history::length_writer #9909

Merged
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ struct length_writer {
}

~length_writer() {
uint32_t end_pos = strm.tellp();
uint64_t end_pos = strm.tellp();
uint32_t len = end_pos - start_pos;
strm.seekp(start_pos - sizeof(len));
strm.write((char*)&len, sizeof(len));
Expand Down