From e5ad7bbc6759b8533554a3fc1ac3be875a2e3bba Mon Sep 17 00:00:00 2001 From: Gav Wood Date: Wed, 5 Aug 2015 00:08:17 +0200 Subject: [PATCH] Fix for FixedHash. --- libdevcore/FixedHash.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libdevcore/FixedHash.h b/libdevcore/FixedHash.h index af67269a1..e0125b005 100644 --- a/libdevcore/FixedHash.h +++ b/libdevcore/FixedHash.h @@ -278,7 +278,7 @@ public: SecureFixedHash operator|(SecureFixedHash const& _c) const { return SecureFixedHash(*this) |= _c; } SecureFixedHash& operator&=(SecureFixedHash const& _c) { static_cast&>(*this).operator^=(static_cast const&>(_c)); return *this; } SecureFixedHash operator&(SecureFixedHash const& _c) const { return SecureFixedHash(*this) &= _c; } - SecureFixedHash operator~() const { ~static_cast&>(*this); return *this; } + SecureFixedHash operator~() const { auto r = ~static_cast const&>(*this); return static_cast(r); } using FixedHash::abridged; using FixedHash::abridgedMiddle;