diff options
| author | 2020-12-31 10:21:12 -0500 | |
|---|---|---|
| committer | 2020-12-31 10:21:15 -0500 | |
| commit | 803ac4ca59782fadd9f9f957cc7462168e6d7fd9 (patch) | |
| tree | 9ee863f286646db0aa5f47c654037c77bad7f098 /src | |
| parent | Merge pull request #5260 from lioncash/uninit (diff) | |
| download | yuzu-803ac4ca59782fadd9f9f957cc7462168e6d7fd9.tar.gz yuzu-803ac4ca59782fadd9f9f957cc7462168e6d7fd9.tar.xz yuzu-803ac4ca59782fadd9f9f957cc7462168e6d7fd9.zip | |
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) { | |||
| 1049 | break; | 1049 | break; |
| 1050 | 1050 | ||
| 1051 | default: | 1051 | default: |
| 1052 | if (static_cast<u32>(result) > | 1052 | if (result > Core::System::ResultStatus::ErrorLoader) { |
| 1053 | static_cast<u32>(Core::System::ResultStatus::ErrorLoader)) { | ||
| 1054 | const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader); | 1053 | const u16 loader_id = static_cast<u16>(Core::System::ResultStatus::ErrorLoader); |
| 1055 | const u16 error_id = static_cast<u16>(result) - loader_id; | 1054 | const u16 error_id = static_cast<u16>(result) - loader_id; |
| 1056 | const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id); | 1055 | const std::string error_code = fmt::format("({:04X}-{:04X})", loader_id, error_id); |