diff --git a/libsolutil/IpfsHash.cpp b/libsolutil/IpfsHash.cpp index 95605cdc1..1f9435748 100644 --- a/libsolutil/IpfsHash.cpp +++ b/libsolutil/IpfsHash.cpp @@ -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))