Răsfoiți Sursa

Fix 64-bit builds n-th time

Daniele Bartolini 12 ani în urmă
părinte
comite
a9ab62a9ef

+ 1 - 1
engine/core/mem/LinearAllocator.cpp

@@ -50,7 +50,7 @@ LinearAllocator::~LinearAllocator()
 		m_backing->deallocate(m_physical_start);
 	}
 
-	CE_ASSERT(m_offset == 0, "Memory leak of %d bytes, maybe you forgot to call clear()?", m_offset);
+	CE_ASSERT(m_offset == 0, "Memory leak of %ld bytes, maybe you forgot to call clear()?", m_offset);
 }
 
 //-----------------------------------------------------------------------------

+ 1 - 1
engine/core/mem/PoolAllocator.cpp

@@ -70,7 +70,7 @@ PoolAllocator::~PoolAllocator()
 	m_backing.deallocate(m_start);
 
 	CE_ASSERT(m_num_allocations == 0 && allocated_size() == 0,
-		"Missing %d deallocations causing a leak of %d bytes", m_num_allocations, allocated_size());
+		"Missing %d deallocations causing a leak of %ld bytes", m_num_allocations, allocated_size());
 }
 
 //-----------------------------------------------------------------------------

+ 1 - 1
engine/core/mem/StackAllocator.cpp

@@ -43,7 +43,7 @@ StackAllocator::StackAllocator(void* start, size_t size) :
 StackAllocator::~StackAllocator()
 {
 	CE_ASSERT(m_allocation_count == 0 && allocated_size() == 0,
-		"Missing %d deallocations causing a leak of %d bytes", m_allocation_count, allocated_size());
+		"Missing %d deallocations causing a leak of %ld bytes", m_allocation_count, allocated_size());
 }
 
 //-----------------------------------------------------------------------------