diff options
author | Lioncash <mathew1800@gmail.com> | 2020-12-31 10:21:12 -0500 |
---|---|---|
committer | Lioncash <mathew1800@gmail.com> | 2020-12-31 10:21:15 -0500 |
commit | 803ac4ca59782fadd9f9f957cc7462168e6d7fd9 (patch) | |
tree | 9ee863f286646db0aa5f47c654037c77bad7f098 /src | |
parent | dab7711524f85c824ce4cdcfb453ba5310c4dacb (diff) |
main: Tidy up enum comparison
enum classes are comparable with one another, so these casts aren't
necessary.
Diffstat (limited to 'src')
-rw-r--r-- | src/yuzu/main.cpp | 3 |
1 files changed, 1 insertions, 2 deletions
diff --git a/src/yuzu/main.cpp b/src/yuzu/main.cpp index 7aa515226..e8f979440 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<u32>(result) > - static_cast<u32>(Core::System::ResultStatus::ErrorLoader)) { + if (result > Core::System::ResultStatus::ErrorLoader) { const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader); const u16 error_id = static_cast<u16>(result) - loader_id; const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id); |