summaryrefslogtreecommitdiff
path: root/Source
diff options
context:
space:
mode:
authorDr. Dystopia <jonis9898@hotmail.com>2025-04-19 20:07:43 +0200
committerDr. Dystopia <jonis9898@hotmail.com>2025-06-04 21:57:45 +0200
commit7b496b2f5bc60fe968a23a8d0053d4838ea9e7d5 (patch)
treeda8e8ba8e6a6fd82d8dd8967c2de6823c9da23fb /Source
parent88122ae9569287394519c755a726c78a6985b428 (diff)
DiscIO: Remove redundant casts
Diffstat (limited to 'Source')
-rw-r--r--Source/Core/DiscIO/WIABlob.cpp2
-rw-r--r--Source/Core/DiscIO/WIABlob.h2
2 files changed, 2 insertions, 2 deletions
diff --git a/Source/Core/DiscIO/WIABlob.cpp b/Source/Core/DiscIO/WIABlob.cpp
index 9ee8470294..69c4f54508 100644
--- a/Source/Core/DiscIO/WIABlob.cpp
+++ b/Source/Core/DiscIO/WIABlob.cpp
@@ -1445,7 +1445,7 @@ WIARVZFileReader<RVZ>::ProcessAndCompress(CompressThreadState* state, CompressPa
ASSERT(hash_offset <= std::numeric_limits<u16>::max());
HashExceptionEntry& exception = exception_lists[exception_list_index].emplace_back();
- exception.offset = static_cast<u16>(Common::swap16(hash_offset));
+ exception.offset = Common::swap16(static_cast<u16>(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 e0d6a66d87..07f1a51857 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<int> GetCompressionLevel() const override
{
- return static_cast<int>(static_cast<s32>(Common::swap32(m_header_2.compression_level)));
+ return static_cast<int>(Common::swap32(m_header_2.compression_level));
}
bool Read(u64 offset, u64 size, u8* out_ptr) override;