aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/skein
diff options
context:
space:
mode:
authorJack Lloyd <[email protected]>2017-05-22 15:43:15 -0400
committerJack Lloyd <[email protected]>2017-05-22 15:43:15 -0400
commit7728fbf8ebbac349bab487bda842cbd8c073848f (patch)
treee1cd1ae4464cbecfeca0b8483b1cd154dc5287a3 /src/lib/hash/skein
parentf2f2fe7610f196cd4c5f51b5e588558762448d3c (diff)
Fix for old GCC and Clang
They don't understand unique_ptr<Derived> to unique_ptr<Base> without help https://stackoverflow.com/questions/22018115/converting-stdunique-ptrderived-to-stdunique-ptrbase
Diffstat (limited to 'src/lib/hash/skein')
-rw-r--r--src/lib/hash/skein/skein_512.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp
index a3bbde9a7..eaa3090a4 100644
--- a/src/lib/hash/skein/skein_512.cpp
+++ b/src/lib/hash/skein/skein_512.cpp
@@ -47,7 +47,7 @@ std::unique_ptr<HashFunction> Skein_512::copy_state() const
copy->m_buffer = this->m_buffer;
copy->m_buf_pos = this->m_buf_pos;
- return copy;
+ return std::move(copy);
}
void Skein_512::clear()