mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 11:38:21 +02:00
Fixed alloc size
This commit is contained in:
parent
e2052d8550
commit
e0ae4be43f
1 changed files with 1 additions and 7 deletions
|
@ -294,9 +294,7 @@ bf::System::Object* Internal::Dbg_ObjectAlloc(bf::System::Reflection::TypeInstan
|
||||||
{
|
{
|
||||||
BF_ASSERT((BFRTFLAGS & BfRtFlags_ObjectHasDebugFlags) != 0);
|
BF_ASSERT((BFRTFLAGS & BfRtFlags_ObjectHasDebugFlags) != 0);
|
||||||
Object* result;
|
Object* result;
|
||||||
|
|
||||||
//TODO: Why did we align this?
|
|
||||||
//intptr allocSize = BF_ALIGN(size, typeInst->mInstAlign);
|
|
||||||
intptr allocSize = size;
|
intptr allocSize = size;
|
||||||
|
|
||||||
uint8* allocBytes = (uint8*)BfObjectAllocate(allocSize, typeInst->_GetType());
|
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;
|
bf::System::Object* result;
|
||||||
if ((BFRTFLAGS & BfRtFlags_LeakCheck) != 0)
|
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);
|
uint8* allocBytes = (uint8*)BfObjectAllocate(allocSize, classVData->mType);
|
||||||
result = (bf::System::Object*)(allocBytes);
|
result = (bf::System::Object*)(allocBytes);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue