Interpreter_FPUtils: Get rid of a pointer cast

This is undefined behavior according to the standard. We can just use
the built in means of retrieving a quiet NaN.
This commit is contained in:
Lioncash 2018-03-24 19:33:38 -04:00
parent 5369d3c9f1
commit 27611d55ff
1 changed files with 1 additions and 2 deletions

View File

@ -13,8 +13,7 @@
#include "Core/PowerPC/Gekko.h"
#include "Core/PowerPC/PowerPC.h"
const u64 PPC_NAN_U64 = 0x7ff8000000000000ull;
const double PPC_NAN = *(double* const) & PPC_NAN_U64;
constexpr double PPC_NAN = std::numeric_limits<double>::quiet_NaN();
// the 4 less-significand bits in FPSCR[FPRF]
enum FPCC