diff options
Diffstat (limited to 'deimos/core/allocator.cpp')
-rw-r--r-- | deimos/core/allocator.cpp | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/deimos/core/allocator.cpp b/deimos/core/allocator.cpp index 1478d36..1a823c1 100644 --- a/deimos/core/allocator.cpp +++ b/deimos/core/allocator.cpp @@ -9,12 +9,12 @@ class SystemAllocatorImpl : public IAllocator {
public:
void* Reallocate(
- void* old_ptr, int64 /* old_size */, int64 new_size,
+ void* old_ptr, int64_t /* old_size */, int64_t new_size,
MemoryScope /* scope */, const SourceLocation& /* source_location */) override
{
if (old_ptr == nullptr)
{
- return new_size > 0 ? ::malloc((uint64)new_size) : nullptr;
+ return new_size > 0 ? ::malloc((uint64_t)new_size) : nullptr;
}
if (new_size == 0)
@@ -26,7 +26,7 @@ public: }
else
{
- return ::realloc(old_ptr, (uint64)new_size);
+ return ::realloc(old_ptr, (uint64_t)new_size);
}
return nullptr;
}
|