From 17dc755ee7df59e5cfd8ab7cdd021820d1790ba6 Mon Sep 17 00:00:00 2001 From: Brian Fiete Date: Wed, 7 Sep 2022 15:36:16 -0700 Subject: [PATCH] SingleAllocator typo fix --- BeefLibs/corlib/src/Allocator.bf | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/BeefLibs/corlib/src/Allocator.bf b/BeefLibs/corlib/src/Allocator.bf index 9f2fab0d..20fe04a7 100644 --- a/BeefLibs/corlib/src/Allocator.bf +++ b/BeefLibs/corlib/src/Allocator.bf @@ -82,7 +82,7 @@ namespace System mType = type; do { - if (size > size) + if (size > mSize) break; void* usePtr = (void*)(int)Math.Align((int)mPtr, align); if ((uint8*)usePtr + size > (uint8*)mPtr + mSize)