From c5030ec4d484b851e62a0553ca2ace1a6b761d9e Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Thu, 10 Feb 2022 19:49:05 -0800 Subject: [PATCH] typofix: boogaloo: electric. --- .../source/fssystem/fssystem_hierarchical_sha256_storage.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp b/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp index 1d806ee1..625372c6 100644 --- a/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp +++ b/libstratosphere/source/fssystem/fssystem_hierarchical_sha256_storage.cpp @@ -137,7 +137,7 @@ namespace ams::fssystem { R_UNLESS(util::IsAligned(size, m_hash_target_block_size), fs::ResultInvalidArgument()); /* Setup tracking variables. */ - 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); auto cur_offset = offset; auto remaining_size = reduced_size; while (remaining_size > 0) { @@ -176,7 +176,7 @@ namespace ams::fssystem { R_UNLESS(util::IsAligned(size, m_hash_target_block_size), fs::ResultInvalidArgument()); /* Determine size to use. */ - const auto reduced_size = std::min(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size) - offset); + const auto reduced_size = std::min(m_base_storage_size, util::AlignUp(offset + size, m_hash_target_block_size)) - offset; /* Operate on the base storage. */ return m_base_storage->OperateRange(dst, dst_size, op_id, offset, reduced_size, src, src_size);