diff --git a/src/common/fp/op/FPConvert.cpp b/src/common/fp/op/FPConvert.cpp index b4e68b7a..8ad3bcc5 100644 --- a/src/common/fp/op/FPConvert.cpp +++ b/src/common/fp/op/FPConvert.cpp @@ -35,7 +35,7 @@ FPT_TO FPConvertNaN(FPT_FROM op) { const u64 exponent = Common::Ones(dest_bit_size - FPInfo::explicit_mantissa_width); if constexpr (sizeof(FPT_TO) == sizeof(u64)) { - return FPT_TO(shifted_sign | exponent << 52 | frac); + return FPT_TO(shifted_sign | exponent << 51 | frac); } else if constexpr (sizeof(FPT_TO) == sizeof(u32)) { return FPT_TO(shifted_sign | exponent << 22 | Common::Bits<29, 50>(frac)); } else {