From 42124fd7d85e93d0edf4c2c4ec64828a8b83cf36 Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 10 Feb 2022 19:43:00 -0800 Subject: [PATCH] fix typo-bug in HierarchicalSha256Storage::Read --- .../source/fssystem/fssystem_hierarchical_sha256_storage.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp b/libraries/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp index ebabc2fee..1d806ee19 100644 --- a/libraries/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp +++ b/libraries/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp @@ -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(std::min(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size) - offset)); + const size_t reduced_size = static_cast(std::min(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. */