mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Some fixes
This commit is contained in:
parent
b267b0e8cd
commit
09e85879d7
@ -4215,9 +4215,8 @@ MemberList::MemberMap MagicType::nativeMembers(ASTNode const*) const
|
||||
}
|
||||
else if (m_typeArgument->category() == Type::Category::Struct)
|
||||
{
|
||||
StructType const* structTypePointer = dynamic_cast<StructType const*>(m_typeArgument);
|
||||
return MemberList::MemberMap({
|
||||
{"typehash", structTypePointer},
|
||||
{"typehash", TypeProvider::fixedBytes(32)},
|
||||
});
|
||||
}
|
||||
else if (m_typeArgument->category() == Type::Category::Integer)
|
||||
|
@ -1948,7 +1948,7 @@ void IRGeneratorForStatements::endVisit(MemberAccess const& _memberAccess)
|
||||
StructType const* structType = dynamic_cast<StructType const*>(arg);
|
||||
solAssert(structType != nullptr);
|
||||
StructDefinition const& struct_ = structType->structDefinition();
|
||||
define(_memberAccess) << formatNumber(struct_.typehash()) << "\n";
|
||||
define(_memberAccess) << "0x" << toHex(struct_.typehash()) << "\n";
|
||||
}
|
||||
else if (member == "min" || member == "max")
|
||||
{
|
||||
|
Loading…
Reference in New Issue
Block a user