mirror of
https://github.com/copyrighttxt/watrbx-game-engine.git
synced 2026-09-04 20:57:49 +00:00
fahhh
This commit is contained in:
@@ -268,7 +268,7 @@ public:
|
||||
// Realloc process: allocate and copy memory, do not free original buffer.
|
||||
void* newBuffer = Malloc(newSize);
|
||||
RAPIDJSON_ASSERT(newBuffer != 0); // Do not handle out-of-memory explicitly.
|
||||
return memcpy(newBuffer, originalPtr, originalSize);
|
||||
return static_cast<char*>(memcpy(newBuffer, originalPtr, originalSize));
|
||||
}
|
||||
|
||||
//! Frees a memory block (concept Allocator)
|
||||
|
||||
Reference in New Issue
Block a user