Add missing assert

This commit is contained in:
Jack Grigg 2016-08-05 22:24:04 +12:00
parent e999c1e339
commit 3c3ef34505
1 changed files with 1 additions and 0 deletions

View File

@ -306,6 +306,7 @@ bool Equihash<N,K>::BasicSolve(const eh_HashState& base_state,
template<size_t MAX_INDICES>
bool IsProbablyDuplicate(std::shared_ptr<eh_trunc> indices, size_t lenIndices)
{
assert(lenIndices <= MAX_INDICES);
bool checked_index[MAX_INDICES] = {false};
bool count_checked = 0;
for (int z = 0; z < lenIndices; z++) {