aboutsummaryrefslogtreecommitdiffstats
path: root/src/lib/hash/skein/skein_512.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'src/lib/hash/skein/skein_512.cpp')
-rw-r--r--src/lib/hash/skein/skein_512.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/lib/hash/skein/skein_512.cpp b/src/lib/hash/skein/skein_512.cpp
index 87dee24ba..67b02e5c1 100644
--- a/src/lib/hash/skein/skein_512.cpp
+++ b/src/lib/hash/skein/skein_512.cpp
@@ -46,7 +46,8 @@ 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;
+ // work around GCC 4.8 bug
+ return std::unique_ptr<HashFunction>(copy.release());
}
void Skein_512::clear()