fix gcrypt build

This commit is contained in:
arvidn 2018-10-17 00:40:31 +02:00 committed by Arvid Norberg
parent 5bf8e15894
commit 3b32c90dde
2 changed files with 2 additions and 2 deletions

View File

@ -77,7 +77,7 @@ namespace libtorrent {
hasher& hasher::operator=(hasher const& h) &
{
if (this == &h) return;
if (this == &h) return *this;
gcry_md_close(m_context);
gcry_md_copy(&m_context, h.m_context);
return *this;

View File

@ -70,7 +70,7 @@ namespace libtorrent {
hasher512& hasher512::operator=(hasher512 const& h) &
{
if (this == &h) return;
if (this == &h) return *this;
gcry_md_close(m_context);
gcry_md_copy(&m_context, h.m_context);
return *this;