From fcc3c353fd250994dec73c4aa4bd66d976c910bb Mon Sep 17 00:00:00 2001 From: Steven Le Rouzic Date: Wed, 3 Apr 2024 23:39:26 +0200 Subject: Separate gsl stuff, and use std-like int types --- deimos/core/allocator.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'deimos/core/allocator.cpp') 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; } -- cgit