Browse Source

Fixed alloc size

Brian Fiete 3 years ago
parent
commit
e0ae4be43f
1 changed files with 1 additions and 7 deletions
  1. 1 7
      BeefRT/dbg/DbgInternal.cpp

+ 1 - 7
BeefRT/dbg/DbgInternal.cpp

@@ -294,9 +294,7 @@ 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);
 	}