diff --git a/src/WireDecoder.cpp b/src/WireDecoder.cpp index 9e0e5c2ce3..55120c9f97 100644 --- a/src/WireDecoder.cpp +++ b/src/WireDecoder.cpp @@ -42,7 +42,7 @@ static double ReadDouble(char*& buf) { val <<= 8; val |= (*((unsigned char*)buf)) & 0xff; ++buf; - return *reinterpret_cast(&val); + return reinterpret_cast(val); } WireDecoder::WireDecoder(raw_istream& is, unsigned int proto_rev) : m_is(is) {