1
0
Fork 0
mirror of https://github.com/Atmosphere-NX/Atmosphere.git synced 2024-11-18 01:46:47 +00:00

libstrat: uncomment some asserts

This commit is contained in:
Michael Scire 2021-09-29 22:02:58 -07:00
parent 9b04ff0f54
commit a4fe1bb5d8
2 changed files with 3 additions and 3 deletions

View file

@ -675,7 +675,7 @@ namespace ams::fssystem::save {
R_TRY(cache.Flush());
cache.Invalidate();
}
/* AMS_ASSERT(!cache.AcquireNextOverlappedCache(invalidate_offset, invalidate_size)); */
AMS_ASSERT(!cache.AcquireNextOverlappedCache(invalidate_offset, invalidate_size));
}
} else if (size < prev_size) {
/* Prepare to do a shrink. */

View file

@ -68,8 +68,8 @@ namespace ams::lmem::impl {
inline void FillMemory(void *dst, u32 fill_value, size_t size) {
/* All heap blocks must be at least 32-bit aligned. */
/* AMS_ASSERT(util::IsAligned(dst, 4)); */
/* AMS_ASSERT(util::IsAligned(size, 4)); */
AMS_ASSERT(util::IsAligned(reinterpret_cast<uintptr_t>(dst), alignof(u32)));
AMS_ASSERT(util::IsAligned(size, sizeof(u32)));
for (size_t i = 0; i < size / sizeof(fill_value); i++) {
reinterpret_cast<u32 *>(dst)[i] = fill_value;
}