mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix undefined behaviour on 32-bit platforms in swarm hash.
This commit is contained in:
parent
804bd8f6dd
commit
b5bb802a93
@ -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)
|
||||
|
Loading…
Reference in New Issue
Block a user