From ba4e7c5866d1f1c873bf3e022aa2554f6b1febcf Mon Sep 17 00:00:00 2001 From: Michael Scire Date: Sun, 13 Mar 2022 00:13:53 -0800 Subject: [PATCH] fs: fix inverted alignment determination in compressed storage --- .../stratosphere/fssystem/fssystem_compressed_storage.hpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp index 059c9fd0f..ed1b434aa 100644 --- a/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp +++ b/libraries/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp @@ -996,7 +996,7 @@ namespace ams::fssystem { } else if (!head_unaligned) { return true; } else { - return static_cast(cur_size + cur_offset) < head_range.GetEndVirtualOffset(); + return head_range.GetEndVirtualOffset() < static_cast(cur_size + cur_offset); } } else { return false;