mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Fix InlineArrayType::componentsCommonMobileType function
This commit is contained in:
@@ -2819,12 +2819,9 @@ Type const* InlineArrayType::componentsCommonMobileType() const
|
||||
Type const* commonType = nullptr;
|
||||
|
||||
for (Type const* type: m_components)
|
||||
commonType =
|
||||
commonType ?
|
||||
Type::commonType(commonType, type->mobileType()) :
|
||||
type->mobileType();
|
||||
commonType = commonType ? Type::commonType(commonType, type) : type;
|
||||
|
||||
return TypeProvider::withLocationIfReference(DataLocation::Memory, commonType);
|
||||
return TypeProvider::withLocationIfReference(DataLocation::Memory, commonType->mobileType());
|
||||
}
|
||||
|
||||
vector<tuple<string, Type const*>> InlineArrayType::makeStackItems() const
|
||||
|
||||
Reference in New Issue
Block a user