From 39feb0610bcecc710dd3d1462b0b1b994eeb4bc5 Mon Sep 17 00:00:00 2001 From: Weiyi Wang Date: Fri, 21 Sep 2018 20:11:29 -0400 Subject: [PATCH] filesys/archive_selfncch: specify endiannes for enum --- src/core/file_sys/archive_selfncch.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/file_sys/archive_selfncch.cpp b/src/core/file_sys/archive_selfncch.cpp index 6cadacbf5..14be1f966 100644 --- a/src/core/file_sys/archive_selfncch.cpp +++ b/src/core/file_sys/archive_selfncch.cpp @@ -25,7 +25,7 @@ enum class SelfNCCHFilePathType : u32 { }; struct SelfNCCHFilePath { - u32_le type; + enum_le type; std::array exefs_filename; }; static_assert(sizeof(SelfNCCHFilePath) == 12, "NCCHFilePath has wrong size!"); @@ -102,7 +102,7 @@ public: SelfNCCHFilePath file_path; std::memcpy(&file_path, binary.data(), sizeof(SelfNCCHFilePath)); - switch (static_cast(file_path.type)) { + switch (file_path.type) { case SelfNCCHFilePathType::UpdateRomFS: return OpenUpdateRomFS();