mirror of
https://github.com/Atmosphere-NX/Atmosphere.git
synced 2024-11-22 20:06:40 +00:00
fix typo-bug in HierarchicalSha256Storage::Read
This commit is contained in:
parent
173d5c2d3a
commit
42124fd7d8
1 changed files with 1 additions and 1 deletions
|
@ -90,7 +90,7 @@ namespace ams::fssystem {
|
|||
R_UNLESS(util::IsAligned(size, m_hash_target_block_size), fs::ResultInvalidArgument());
|
||||
|
||||
/* Read the data. */
|
||||
const size_t reduced_size = static_cast<size_t>(std::min<s64>(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size) - offset));
|
||||
const size_t reduced_size = static_cast<size_t>(std::min<s64>(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size)) - offset);
|
||||
R_TRY(m_base_storage->Read(offset, buffer, reduced_size));
|
||||
|
||||
/* Temporarily increase our thread priority. */
|
||||
|
|
Loading…
Reference in a new issue