From 1914087998bc296208355dc4b1b2553430b081b2 Mon Sep 17 00:00:00 2001 From: Pokechu22 Date: Sun, 20 Jun 2021 13:47:57 -0700 Subject: Create and use CPArray enum class --- Source/Core/VideoCommon/OpcodeDecoding.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Source/Core/VideoCommon/OpcodeDecoding.cpp') diff --git a/Source/Core/VideoCommon/OpcodeDecoding.cpp b/Source/Core/VideoCommon/OpcodeDecoding.cpp index 362afd6a7a..be879ddfbc 100644 --- a/Source/Core/VideoCommon/OpcodeDecoding.cpp +++ b/Source/Core/VideoCommon/OpcodeDecoding.cpp @@ -166,12 +166,12 @@ u8* Run(DataReader src, u32* cycles, bool in_display_list) // GX_LOAD_INDX_B (40) -> 0xD // GX_LOAD_INDX_C (48) -> 0xE // GX_LOAD_INDX_D (56) -> 0xF - const int ref_array = (cmd_byte / 8) + 8; + const auto array = static_cast((cmd_byte / 8) + 8); if constexpr (is_preprocess) - PreprocessIndexedXF(src.Read(), ref_array); + PreprocessIndexedXF(array, src.Read()); else - LoadIndexedXF(src.Read(), ref_array); + LoadIndexedXF(array, src.Read()); } break; -- cgit v1.2.3