From a55b6565b81acb62223ee5538dd511d8499e3de0 Mon Sep 17 00:00:00 2001 From: Peter Johnson Date: Sat, 4 Jul 2015 10:49:57 -0700 Subject: [PATCH] WireDecoder ReadDouble: Use ref cast. Change-Id: I47f23709960d13c005916b5d41d81339302adda5 --- src/WireDecoder.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) 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) {