diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp index 3f91a606aa..d1b39e7b50 100644 --- a/Source/Core/DiscIO/WIABlob.cpp +++ b/Source/Core/DiscIO/WIABlob.cpp @@ -1445,7 +1445,7 @@ WIARVZFileReader::ProcessAndCompress(CompressThreadState* state, CompressPa ASSERT(hash_offset <= std::numeric_limits::max()); HashExceptionEntry& exception = exception_lists[exception_list_index].emplace_back(); - exception.offset = static_cast(Common::swap16(hash_offset)); + exception.offset = Common::swap16(hash_offset); std::memcpy(exception.hash.data(), desired_hash, Common::SHA1::DIGEST_LEN); } }; diff --git a/Source/Core/DiscIO/WIABlob.h b/Source/Core/DiscIO/WIABlob.h index 106cf560d9..446bb7ddd2 100644 --- a/Source/Core/DiscIO/WIABlob.h +++ b/Source/Core/DiscIO/WIABlob.h @@ -60,7 +60,7 @@ public: std::string GetCompressionMethod() const override; std::optional GetCompressionLevel() const override { - return static_cast(static_cast(Common::swap32(m_header_2.compression_level))); + return static_cast(Common::swap32(m_header_2.compression_level)); } bool Read(u64 offset, u64 size, u8* out_ptr) override;