From ae336fe1c1e760bbe0901081a1c5a7454e75ff5b Mon Sep 17 00:00:00 2001 From: chriseth Date: Thu, 9 Apr 2020 17:01:26 +0200 Subject: [PATCH] Fix 32 bit build failure. --- libsolutil/IpfsHash.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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))