tests/fuzz_arm: Fix MSVC conversion warnings

This commit is contained in:
MerryMage 2016-08-25 17:46:22 +01:00
parent 3caf31d19c
commit 130b5510a6

View file

@ -288,9 +288,9 @@ void FuzzJitArm(const size_t instruction_count, const size_t instructions_to_exe
printf("%zu [%x] = %" PRIx64 "\n", record.size, record.address, record.data);
}
u32 num_insts = 0;
size_t num_insts = 0;
while (num_insts < instructions_to_execute_count) {
Dynarmic::Arm::LocationDescriptor descriptor = {num_insts * 4, false, false, 0};
Dynarmic::Arm::LocationDescriptor descriptor = {u32(num_insts * 4), false, false, 0};
Dynarmic::IR::Block ir_block = Dynarmic::Arm::Translate(descriptor, &MemoryRead32);
Dynarmic::Optimization::GetSetElimination(ir_block);
Dynarmic::Optimization::DeadCodeElimination(ir_block);