diff options
author | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 17:21:07 +0200 |
---|---|---|
committer | Sergeanur <s.anureev@yandex.ua> | 2021-01-08 17:21:07 +0200 |
commit | 5fb3edf258573f23602309d26ccd2b06ce83a52d (patch) | |
tree | 40d575b184ff9ec6883cbdd973607055e9e43d11 /src/leeds/base | |
parent | ecdd751ec39e0e3ff6fc36850df54906d6bbf414 (diff) |
Allocator fix
Diffstat (limited to 'src/leeds/base')
-rw-r--r-- | src/leeds/base/memoryManager.cpp | 4 | ||||
-rw-r--r-- | src/leeds/base/memoryManager.h | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/src/leeds/base/memoryManager.cpp b/src/leeds/base/memoryManager.cpp index 7f6145bd..20604299 100644 --- a/src/leeds/base/memoryManager.cpp +++ b/src/leeds/base/memoryManager.cpp @@ -54,12 +54,12 @@ namespace base } }; -void* operator new(uint32 size) +void* operator new(size_t size) { return base::cMainMemoryManager::Instance()->Allocate(size); } -void* operator new[](uint32 size) +void* operator new[](size_t size) { return base::cMainMemoryManager::Instance()->Allocate(size); } diff --git a/src/leeds/base/memoryManager.h b/src/leeds/base/memoryManager.h index 97ee4a43..a4b1beac 100644 --- a/src/leeds/base/memoryManager.h +++ b/src/leeds/base/memoryManager.h @@ -33,7 +33,7 @@ namespace base }; } -void* operator new(uint32 size); -void* operator new[](uint32 size); +void* operator new(size_t size); +void* operator new[](size_t size); void operator delete(void* buf); void operator delete[](void* buf);
\ No newline at end of file |