From 392c1335b7197dd85eec7381603029ca7ad1f593 Mon Sep 17 00:00:00 2001 From: Lioncash Date: Wed, 9 Dec 2015 19:14:53 -0500 Subject: [PATCH] Interpreter: Get rid of some aliasing casts --- .../Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp index d61d8e6231..071e1218e5 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FloatingPoint.cpp @@ -172,7 +172,7 @@ void Interpreter::fctiwx(UGeckoInstruction _inst) // based on HW tests // FPRF is not affected riPS0(_inst.FD) = 0xfff8000000000000ull | value; - if (value == 0 && ( (*(u64*)&b) & DOUBLE_SIGN )) + if (value == 0 && std::signbit(b)) riPS0(_inst.FD) |= 0x100000000ull; if (_inst.Rc) Helper_UpdateCR1(); @@ -218,7 +218,7 @@ void Interpreter::fctiwzx(UGeckoInstruction _inst) // based on HW tests // FPRF is not affected riPS0(_inst.FD) = 0xfff8000000000000ull | value; - if (value == 0 && ( (*(u64*)&b) & DOUBLE_SIGN )) + if (value == 0 && std::signbit(b)) riPS0(_inst.FD) |= 0x100000000ull; if (_inst.Rc) Helper_UpdateCR1();