From 72ed386102d8229ef8b1dbdd74083809b58c35a8 Mon Sep 17 00:00:00 2001 From: Stephen Miller Date: Thu, 8 May 2025 19:19:05 -0500 Subject: [PATCH] Fix assert message --- src/core/memory.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/core/memory.cpp b/src/core/memory.cpp index 3cc8a69a7..dd7628270 100644 --- a/src/core/memory.cpp +++ b/src/core/memory.cpp @@ -306,7 +306,7 @@ int MemoryManager::PoolCommit(VAddr virtual_addr, size_t size, MemoryProt prot) const size_t remaining_size = vma.base + vma.size - mapped_addr; ASSERT_MSG(!vma.IsMapped() && remaining_size >= size, "Memory region {:#x} to {:#x} isn't free enough to map region {:#x} to {:#x}", - vma.base, vma.base + size, virtual_addr, virtual_addr + size); + vma.base, vma.base + vma.size, virtual_addr, virtual_addr + size); // Perform the mapping. void* out_addr = impl.Map(mapped_addr, size, alignment, -1, false); @@ -351,7 +351,7 @@ int MemoryManager::MapMemory(void** out_addr, VAddr virtual_addr, size_t size, M const size_t remaining_size = vma.base + vma.size - mapped_addr; ASSERT_MSG(!vma.IsMapped() && remaining_size >= size, "Memory region {:#x} to {:#x} isn't free enough to map region {:#x} to {:#x}", - vma.base, vma.base + size, virtual_addr, virtual_addr + size); + vma.base, vma.base + vma.size, virtual_addr, virtual_addr + size); } // Find the first free area starting with provided virtual address.