mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-04-24 22:34:54 +00:00
DiscIO: Remove redundant casts
This commit is contained in:
parent
f8bf35e6f0
commit
7d2a026d9a
2 changed files with 2 additions and 2 deletions
|
@ -1445,7 +1445,7 @@ WIARVZFileReader<RVZ>::ProcessAndCompress(CompressThreadState* state, CompressPa
|
||||||
ASSERT(hash_offset <= std::numeric_limits<u16>::max());
|
ASSERT(hash_offset <= std::numeric_limits<u16>::max());
|
||||||
|
|
||||||
HashExceptionEntry& exception = exception_lists[exception_list_index].emplace_back();
|
HashExceptionEntry& exception = exception_lists[exception_list_index].emplace_back();
|
||||||
exception.offset = static_cast<u16>(Common::swap16(hash_offset));
|
exception.offset = Common::swap16(hash_offset);
|
||||||
std::memcpy(exception.hash.data(), desired_hash, Common::SHA1::DIGEST_LEN);
|
std::memcpy(exception.hash.data(), desired_hash, Common::SHA1::DIGEST_LEN);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
|
@ -60,7 +60,7 @@ public:
|
||||||
std::string GetCompressionMethod() const override;
|
std::string GetCompressionMethod() const override;
|
||||||
std::optional<int> GetCompressionLevel() 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<s32>(Common::swap32(m_header_2.compression_level));
|
||||||
}
|
}
|
||||||
|
|
||||||
bool Read(u64 offset, u64 size, u8* out_ptr) override;
|
bool Read(u64 offset, u64 size, u8* out_ptr) override;
|
||||||
|
|
Loading…
Add table
Reference in a new issue