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

Commit

Permalink
Merge pull request #9909 from EOSIO/huangminghuang/fix-ship-length_wr…
Browse files Browse the repository at this point in the history
…iter-2.1.x

Fix state_history::length_writer
  • Loading branch information
huangminghuang authored Jan 19, 2021
2 parents 70f54cf + 628c5d8 commit 1c6a5dc
Showing 1 changed file with 1 addition and 1 deletion.
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

0 comments on commit 1c6a5dc

Please sign in to comment.