From 7323af0b413155a7c92e590d438610115109b2d2 Mon Sep 17 00:00:00 2001 From: Thomas Harte Date: Wed, 15 Nov 2023 11:10:01 -0500 Subject: [PATCH] Avoid shadowing template parameter. --- InstructionSets/x86/Flags.hpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/InstructionSets/x86/Flags.hpp b/InstructionSets/x86/Flags.hpp index 082267c17..d91ad0017 100644 --- a/InstructionSets/x86/Flags.hpp +++ b/InstructionSets/x86/Flags.hpp @@ -82,8 +82,8 @@ class Flags { using FlagT = uint32_t; // Flag getters. - template bool flag() const { - switch(flag) { + template bool flag() const { + switch(flag_v) { case Flag::Carry: return carry_; case Flag::AuxiliaryCarry: return auxiliary_carry_; case Flag::Sign: return sign_;