Skip to content

Commit

Permalink
Fix bugs compiling the occil tests
Browse files Browse the repository at this point in the history
  • Loading branch information
LADSoft committed Sep 23, 2024
1 parent 05f8083 commit 24ff614
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/occparse/import.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -213,8 +213,8 @@ Type* Importer::TranslateType(DotNetPELib::Type* in)
{
rv = Type::MakeType(BasicType::lref_, rv);
}
rv->UpdateRootTypes();
}
rv->UpdateRootTypes();
return rv;
}

Expand Down
2 changes: 1 addition & 1 deletion src/occparse/overload.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -3568,7 +3568,7 @@ static bool getFuncConversions(SYMBOL* sym, CallSite* f, Type* atp, SYMBOL* pare
initializerListType = it->second->byClass.val;
}
}
else if (tp1->IsArray() && (ita != itae) && (!(*ita)->tp || !(*ita)->tp->IsArray()) )
else if (Optimizer::architecture != ARCHITECTURE_MSIL && tp1->IsArray() && (ita != itae) && (!(*ita)->tp || !(*ita)->tp->IsArray()) )
{
auto tp2 = tp1;
while (tp2->IsArray()) tp2 = tp2->BaseType()->btp;
Expand Down

0 comments on commit 24ff614

Please sign in to comment.