diff options
author | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-03 23:39:26 +0200 |
---|---|---|
committer | Steven Le Rouzic <steven.lerouzic@gmail.com> | 2024-04-03 23:39:44 +0200 |
commit | fcc3c353fd250994dec73c4aa4bd66d976c910bb (patch) | |
tree | d009d175c4a8aec3d7b639fa7a37c635b072d037 /deimos/core/allocator.cpp | |
parent | 636b98e0ec8771c4377fd78e036da6acbec109db (diff) |
Separate gsl stuff, and use std-like int types
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;
}
|