From cc834c4a92e4bb91418daec92c272079ed2e211d Mon Sep 17 00:00:00 2001 From: Mikhail <99481254+DCFApixels@users.noreply.github.com> Date: Tue, 17 Mar 2026 15:34:31 +0800 Subject: [PATCH] fix mem alloc api --- src/Internal/Allocators/MemoryAllocator.cs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/Internal/Allocators/MemoryAllocator.cs b/src/Internal/Allocators/MemoryAllocator.cs index 4f71627..8828357 100644 --- a/src/Internal/Allocators/MemoryAllocator.cs +++ b/src/Internal/Allocators/MemoryAllocator.cs @@ -86,7 +86,7 @@ namespace DCFApixels.DragonECS.Core.Internal #endregion #region ReallocAndInit - public static HMem ReallocAndInit(void* target, int oldCount, int newCount) where T : unmanaged + public static HMem ReallocAndInit(T* target, int oldCount, int newCount) where T : unmanaged { return ReallocAndInit(Handler.FromDataPtr(target), oldCount, newCount); } @@ -117,7 +117,7 @@ namespace DCFApixels.DragonECS.Core.Internal #endregion #region Realloc - public static HMem Realloc(void* target, int newCount) where T : unmanaged + public static HMem Realloc(T* target, int newCount) where T : unmanaged { return Realloc(Handler.FromDataPtr(target), Marshal.SizeOf() * newCount); }