diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 7aa5152263..e8f979440b 100644 --- a/src/yuzu/main.cpp +++ b/src/yuzu/main.cpp @@ -1049,8 +1049,7 @@ bool GMainWindow::LoadROM(const QString& filename, std::size_t program_index) { break; default: - if (static_cast(result) > - static_cast(Core::System::ResultStatus::ErrorLoader)) { + if (result > Core::System::ResultStatus::ErrorLoader) { const u16 loader_id = static_cast(Core::System::ResultStatus::ErrorLoader); const u16 error_id = static_cast(result) - loader_id; const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id);