arb_decompiler: Use bit_cast for FClamp

This commit is contained in:
David Marcec
2020-08-12 01:16:06 +10:00
parent 257b1d2c4b
commit 7e2e1e3bad

View File

@@ -1574,8 +1574,7 @@ std::string ARBDecompiler::Select(Operation operation) {
}
std::string ARBDecompiler::FClamp(Operation operation) {
// 1.0f in hex, replace with std::bit_cast on C++20
static constexpr u32 POSITIVE_ONE = 0x3f800000;
static constexpr u32 POSITIVE_ONE = std::bit_cast<u32>(1.0f);
std::string temporary = AllocTemporary();
const Node& value = operation[0];