mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Merge pull request #8648 from ethereum/fix32bitfailure
Fix 32 bit build failure.
This commit is contained in:
commit
333322ebf4
@ -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))
|
||||||
|
Loading…
Reference in New Issue
Block a user