Procházet zdrojové kódy

core: fix conversion specifiers

Daniele Bartolini před 6 roky
rodič
revize
4734e7ef50

+ 1 - 1
src/core/memory/linear_allocator.cpp

@@ -31,7 +31,7 @@ LinearAllocator::~LinearAllocator()
 		_backing->deallocate(_physical_start);
 
 	CE_ASSERT(_offset == 0
-		, "Memory leak of %d bytes, maybe you forgot to call clear()?"
+		, "Memory leak of %u bytes, maybe you forgot to call clear()?"
 		, _offset
 		);
 }

+ 1 - 1
src/core/memory/memory.cpp

@@ -104,7 +104,7 @@ namespace memory
 		~HeapAllocator()
 		{
 			CE_ASSERT(_allocation_count == 0 && total_allocated() == 0
-				, "Missing %d deallocations causing a leak of %d bytes"
+				, "Missing %u deallocations causing a leak of %u bytes"
 				, _allocation_count
 				, total_allocated()
 				);

+ 0 - 2
src/core/memory/proxy_allocator.h

@@ -10,8 +10,6 @@
 namespace crown
 {
 /// Offers the facility to tag allocators by a string identifier.
-/// Proxy allocator is appended to a global linked list when instantiated
-/// so that it is possible to later visit that list for debugging purposes.
 ///
 /// @ingroup Memory
 struct ProxyAllocator : public Allocator

+ 1 - 1
src/core/memory/stack_allocator.cpp

@@ -19,7 +19,7 @@ StackAllocator::StackAllocator(char* begin, u32 size)
 StackAllocator::~StackAllocator()
 {
 	CE_ASSERT(_allocation_count == 0 && total_allocated() == 0
-		, "Missing %d deallocations causing a leak of %d bytes"
+		, "Missing %u deallocations causing a leak of %u bytes"
 		, _allocation_count
 		, total_allocated()
 		);