diff --git a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp index 2387ecf458..99a761a6ba 100644 --- a/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp +++ b/Source/Core/DolphinQt/FIFO/FIFOAnalyzer.cpp @@ -20,6 +20,7 @@ #include #include "Common/Assert.h" +#include "Common/EnumUtils.h" #include "Common/Swap.h" #include "Core/FifoPlayer/FifoPlayer.h" @@ -262,7 +263,7 @@ public: const u32 object_prim_size = num_vertices * vertex_size; const u8 opcode = - 0x80 | (static_cast(primitive) << OpcodeDecoder::GX_PRIMITIVE_SHIFT) | vat; + 0x80 | Common::ToUnderlying(primitive) << OpcodeDecoder::GX_PRIMITIVE_SHIFT | vat; text = QStringLiteral("PRIMITIVE %1 (%2) %3 vertices %4 bytes/vertex %5 total bytes") .arg(QString::fromStdString(name)) .arg(opcode, 2, 16, QLatin1Char('0'))