ams-libs: AMS_ASSERT no longer invokes expression
This commit is contained in:
@@ -192,6 +192,7 @@ namespace ams::fssystem::save {
|
||||
const auto cache_buffer = reinterpret_cast<u8 *>(this->memory_range.first) + read_offset;
|
||||
AMS_ASSERT(read_offset >= 0);
|
||||
AMS_ASSERT(static_cast<size_t>(read_offset) <= readable_offset_max);
|
||||
AMS_UNUSED(readable_offset_max);
|
||||
|
||||
std::memcpy(buffer, cache_buffer, size);
|
||||
}
|
||||
@@ -209,6 +210,7 @@ namespace ams::fssystem::save {
|
||||
const auto cache_buffer = reinterpret_cast<u8 *>(this->memory_range.first) + write_offset;
|
||||
AMS_ASSERT(write_offset >= 0);
|
||||
AMS_ASSERT(static_cast<size_t>(write_offset) <= writable_offset_max);
|
||||
AMS_UNUSED(writable_offset_max);
|
||||
|
||||
std::memcpy(cache_buffer, buffer, size);
|
||||
this->is_dirty = true;
|
||||
|
||||
Reference in New Issue
Block a user