Fix typo giving the wrong mem on error, closes #2023.

This commit is contained in:
Christoffer Lerno
2025-03-07 12:14:01 +01:00
parent 5482107ca8
commit 5898cad98d

View File

@@ -74,7 +74,7 @@ static inline void* mmap_allocate(Vmem *vmem, size_t to_allocate)
if (vmem->size < allocated_after)
{
error_exit("Error: The compiler ran out of memory! Over %u MB was allocated from a single memory arena, perhaps "
"you called some recursive macro?", (unsigned)(vmem->size / (1024 * 1204)));
"you called some recursive macro?", (unsigned)(vmem->size / (1024 * 1024)));
}
return ptr;
}