From 4b730c26d0f2bcad22a8ca052ebe848aeb0141fe Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Thu, 16 Nov 2023 23:31:51 -0500 Subject: [PATCH] Satisfy GCC warning. --- InstructionSets/x86/Implementation/Resolver.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InstructionSets/x86/Implementation/Resolver.hpp b/InstructionSets/x86/Implementation/Resolver.hpp index 0f84eb825..f64239d6b 100644 --- a/InstructionSets/x86/Implementation/Resolver.hpp +++ b/InstructionSets/x86/Implementation/Resolver.hpp @@ -162,7 +162,7 @@ typename Accessor::type resolve( // // * if this is a memory access, set target_address and break; // * otherwise return the appropriate value. - uint32_t target_address; + uint32_t target_address = 0; switch(source) { // Defer all register accesses to the register-specific lookup. case Source::eAX: return *register_(context); @@ -183,7 +183,7 @@ typename Accessor::type resolve( case Source::None: return *none; case Source::Immediate: - *immediate = instruction.operand(); + *immediate = IntT(instruction.operand()); return *immediate; case Source::Indirect: