Merge pull request #8648 from ethereum/fix32bitfailure

Fix 32 bit build failure.
This commit is contained in:
Leonardo 2020-04-09 20:25:07 +02:00 committed by GitHub
commit 333322ebf4
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

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