mirror of
https://github.com/beefytech/Beef.git
synced 2025-06-08 19:48:20 +02:00
Fixed handling of virtual methods in boxed structs
This commit is contained in:
parent
7894fc73cc
commit
43d7d72f48
6 changed files with 28 additions and 26 deletions
|
@ -3372,7 +3372,7 @@ void BfModule::DoTypeInstanceMethodProcessing(BfTypeInstance* typeInstance)
|
|||
if (typeInstance->mHotTypeData != NULL)
|
||||
{
|
||||
//auto hotLatestVersionHead = typeInstance->mHotTypeData->GetLatestVersionHead();
|
||||
int wantVTableSize = typeInstance->GetBaseVTableSize() + (int)typeInstance->mHotTypeData->mVTableEntries.size();
|
||||
int wantVTableSize = typeInstance->GetImplBaseVTableSize() + (int)typeInstance->mHotTypeData->mVTableEntries.size();
|
||||
while ((int)typeInstance->mVirtualMethodTable.size() < wantVTableSize)
|
||||
{
|
||||
typeInstance->mVirtualMethodTable.push_back(BfVirtualMethodEntry());
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue