diff --git a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h index 7c52342dd2..d2adcd7b6f 100644 --- a/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h +++ b/Source/Core/Core/PowerPC/Interpreter/Interpreter_FPUtils.h @@ -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::quiet_NaN(); // the 4 less-significand bits in FPSCR[FPRF] enum FPCC