Skip to content

Commit

Permalink
Fix undefined behaviour on 32-bit platforms in swarm hash.
Browse files Browse the repository at this point in the history
  • Loading branch information
ekpyron committed Jan 13, 2021
1 parent 804bd8f commit b5bb802
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion libsolutil/SwarmHash.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ using namespace solidity::util;
namespace
{

bytes toLittleEndian(size_t _size)
bytes toLittleEndian(uint64_t _size)
{
bytes encoded(8);
for (size_t i = 0; i < 8; ++i)
Expand Down

0 comments on commit b5bb802

Please sign in to comment.