Skip to content

Commit 2acb495

Browse files
authored
Merge pull request #13539 from tygyh/DiscIO-Remove-redundant-casts
DiscIO: Remove redundant casts
2 parents 41b6ab4 + 7b496b2 commit 2acb495

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

Source/Core/DiscIO/WIABlob.cpp

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1446,7 +1446,7 @@ WIARVZFileReader<RVZ>::ProcessAndCompress(CompressThreadState* state, CompressPa
14461446
ASSERT(hash_offset <= std::numeric_limits<u16>::max());
14471447

14481448
HashExceptionEntry& exception = exception_lists[exception_list_index].emplace_back();
1449-
exception.offset = static_cast<u16>(Common::swap16(hash_offset));
1449+
exception.offset = Common::swap16(static_cast<u16>(hash_offset));
14501450
std::memcpy(exception.hash.data(), desired_hash, Common::SHA1::DIGEST_LEN);
14511451
}
14521452
};

Source/Core/DiscIO/WIABlob.h

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -60,7 +60,7 @@ class WIARVZFileReader final : public BlobReader
6060
std::string GetCompressionMethod() const override;
6161
std::optional<int> GetCompressionLevel() const override
6262
{
63-
return static_cast<int>(static_cast<s32>(Common::swap32(m_header_2.compression_level)));
63+
return static_cast<int>(Common::swap32(m_header_2.compression_level));
6464
}
6565

6666
bool Read(u64 offset, u64 size, u8* out_ptr) override;

0 commit comments

Comments
 (0)