diff --git a/src/test/frametest.cpp b/src/test/frametest.cpp index b64dee32815..8a75ec8b209 100644 --- a/src/test/frametest.cpp +++ b/src/test/frametest.cpp @@ -12,7 +12,7 @@ TEST_F(FrameTest, DoubleValues) { if (std::numeric_limits::is_iec559) { double inf = util_double_infinity(); // IEC 559 (IEEE 754) Infinity - EXPECT_EQ(*reinterpret_cast(inf), 0x7FF0000000000000); + EXPECT_EQ(*reinterpret_cast(&inf), 0x7FF0000000000000); } }