From 130b5510a6882e2a5eea4006ff7287bb20ab18ee Mon Sep 17 00:00:00 2001 From: MerryMage Date: Thu, 25 Aug 2016 17:46:22 +0100 Subject: [PATCH] tests/fuzz_arm: Fix MSVC conversion warnings --- tests/arm/fuzz_arm.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/tests/arm/fuzz_arm.cpp b/tests/arm/fuzz_arm.cpp index 5dbf3a95..db105aa2 100644 --- a/tests/arm/fuzz_arm.cpp +++ b/tests/arm/fuzz_arm.cpp @@ -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);