1
0
mirror of https://github.com/TomHarte/CLK.git synced 2024-11-22 12:33:29 +00:00

Avoid shadowing template parameter.

This commit is contained in:
Thomas Harte 2023-11-15 11:10:01 -05:00
parent 1676ed9850
commit 7323af0b41

View File

@ -82,8 +82,8 @@ class Flags {
using FlagT = uint32_t;
// Flag getters.
template <Flag flag> bool flag() const {
switch(flag) {
template <Flag flag_v> bool flag() const {
switch(flag_v) {
case Flag::Carry: return carry_;
case Flag::AuxiliaryCarry: return auxiliary_carry_;
case Flag::Sign: return sign_;