Update equihash.cpp

fix https://github.com/zcash/zcash/issues/1214
This commit is contained in:
Robert C. Seacord 2016-08-10 15:40:32 -04:00 committed by GitHub
parent a8270035c0
commit 1031047885
1 changed files with 1 additions and 1 deletions

View File

@ -200,7 +200,7 @@ TruncatedStepRow<WIDTH>& TruncatedStepRow<WIDTH>::operator=(const TruncatedStepR
template<size_t WIDTH>
std::shared_ptr<eh_trunc> TruncatedStepRow<WIDTH>::GetTruncatedIndices(size_t len, size_t lenIndices) const
{
std::shared_ptr<eh_trunc> p (new eh_trunc[lenIndices]);
std::shared_ptr<eh_trunc> p (new eh_trunc[lenIndices], std::default_delete<eh_trunc[]>());
std::copy(hash+len, hash+len+lenIndices, p.get());
return p;
}