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:
parent
e2052d8550
commit
e0ae4be43f
1 changed files with 1 additions and 7 deletions
|
@ -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);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue