From 70ab03529ec9216c3f0339a2c7afb4ffba39a6f0 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Tue, 10 Oct 2023 11:55:36 -0700 Subject: [PATCH] Cast fix --- BeefLibs/corlib/src/BumpAllocator.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/BumpAllocator.bf b/BeefLibs/corlib/src/BumpAllocator.bf index 8edde7f5..5abdb201 100644 --- a/BeefLibs/corlib/src/BumpAllocator.bf +++ b/BeefLibs/corlib/src/BumpAllocator.bf @@ -70,7 +70,7 @@ namespace System { for (var dtorEntry in ref mDtorEntriesEx) { - uint8* ptr = mPools[dtorEntry.mPoolIdx].Ptr + (int)dtorEntry.mPoolOfs; + uint8* ptr = mPools[(int)dtorEntry.mPoolIdx].Ptr + dtorEntry.mPoolOfs; Object obj = Internal.UnsafeCastToObject(ptr); delete:null obj; }