Fix undefined behaviour on 32-bit platforms in swarm hash.

This commit is contained in:
Daniel Kirchner 2021-01-13 15:46:52 +01:00
parent 804bd8f6dd
commit b5bb802a93

View File

@ -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)