1
0
Fork 0
mirror of https://github.com/beefytech/Beef.git synced 2025-06-08 19:48:20 +02:00

Fixed alloc size

This commit is contained in:
Brian Fiete 2022-06-04 10:58:49 -07:00
parent e2052d8550
commit e0ae4be43f

View file

@ -295,8 +295,6 @@ bf::System::Object* Internal::Dbg_ObjectAlloc(bf::System::Reflection::TypeInstan
BF_ASSERT((BFRTFLAGS & BfRtFlags_ObjectHasDebugFlags) != 0);
Object* result;
//TODO: Why did we align this?
//intptr allocSize = BF_ALIGN(size, typeInst->mInstAlign);
intptr allocSize = size;
uint8* allocBytes = (uint8*)BfObjectAllocate(allocSize, typeInst->_GetType());
@ -347,10 +345,6 @@ bf::System::Object* Internal::Dbg_ObjectAlloc(bf::System::ClassVData* classVData
bf::System::Object* result;
if ((BFRTFLAGS & BfRtFlags_LeakCheck) != 0)
{
//TODO: Why did we align this?
//intptr allocSize = BF_ALIGN(size, typeInst->mInstAlign);
intptr allocSize = size;
uint8* allocBytes = (uint8*)BfObjectAllocate(allocSize, classVData->mType);
result = (bf::System::Object*)(allocBytes);
}