mirror of
https://github.com/Atmosphere-NX/Atmosphere
synced 2024-12-22 12:21:18 +00:00
libstrat: uncomment some asserts
This commit is contained in:
parent
9b04ff0f54
commit
a4fe1bb5d8
2 changed files with 3 additions and 3 deletions
|
@ -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. */
|
||||
|
|
|
@ -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;
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue