From 30bd29792026b8451ddc8a7fdb84addd0047e0a9 Mon Sep 17 00:00:00 2001 From: Jack Grigg Date: Sat, 6 Aug 2016 15:26:22 +1200 Subject: [PATCH] Fix bug in IsProbablyDuplicate() Closes #1179 --- src/crypto/equihash.tcc | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/crypto/equihash.tcc b/src/crypto/equihash.tcc index 9b0190811..1496c174d 100644 --- a/src/crypto/equihash.tcc +++ b/src/crypto/equihash.tcc @@ -27,7 +27,7 @@ bool IsProbablyDuplicate(std::shared_ptr indices, size_t lenIndices) { assert(lenIndices <= MAX_INDICES); bool checked_index[MAX_INDICES] = {false}; - bool count_checked = 0; + int count_checked = 0; for (int z = 0; z < lenIndices; z++) { // Skip over indices we have already paired if (!checked_index[z]) {