testenv: Ignore warning C4309
This commit is contained in:
parent
b252636dc3
commit
a599c29d9e
1 changed files with 7 additions and 0 deletions
|
@ -23,7 +23,14 @@ public:
|
||||||
using RegisterArray = std::array<u32, 16>;
|
using RegisterArray = std::array<u32, 16>;
|
||||||
using ExtRegsArray = std::array<u32, 64>;
|
using ExtRegsArray = std::array<u32, 64>;
|
||||||
|
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(push)
|
||||||
|
#pragma warning(disable:4309) // C4309: 'static_cast': truncation of constant value
|
||||||
|
#endif
|
||||||
static constexpr InstructionType infinite_loop = static_cast<InstructionType>(infinite_loop_u32);
|
static constexpr InstructionType infinite_loop = static_cast<InstructionType>(infinite_loop_u32);
|
||||||
|
#ifdef _MSC_VER
|
||||||
|
#pragma warning(pop)
|
||||||
|
#endif
|
||||||
|
|
||||||
u64 ticks_left = 0;
|
u64 ticks_left = 0;
|
||||||
bool code_mem_modified_by_guest = false;
|
bool code_mem_modified_by_guest = false;
|
||||||
|
|
Loading…
Reference in a new issue