From 96aa83a60b7e4db3009736df65e82dd192e46ad2 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/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp b/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp index 059c9fd0..ed1b434a 100644 --- a/libstratosphere/include/stratosphere/fssystem/fssystem_compressed_storage.hpp +++ b/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;