Fix 32 bit build failure.

This commit is contained in:
chriseth 2020-04-09 17:01:26 +02:00
parent ee3bb0475c
commit ae336fe1c1

View File

@ -160,7 +160,7 @@ bytes solidity::util::ipfsHash(string _data)
Chunks allChunks;
for (unsigned long chunkIndex = 0; chunkIndex < chunkCount; chunkIndex++)
for (size_t chunkIndex = 0; chunkIndex < chunkCount; chunkIndex++)
{
bytes chunkBytes = asBytes(
_data.substr(chunkIndex * maxChunkSize, min(maxChunkSize, _data.length() - chunkIndex * maxChunkSize))