mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
style fixes
This commit is contained in:
parent
e17938a2a9
commit
dd3b0664c6
@ -119,7 +119,8 @@ map<FixedHash<4>, FunctionTypePointer> ContractDefinition::interfaceFunctions()
|
|||||||
for (auto const& it: exportedFunctionList)
|
for (auto const& it: exportedFunctionList)
|
||||||
exportedFunctions.insert(it);
|
exportedFunctions.insert(it);
|
||||||
|
|
||||||
solAssert(exportedFunctionList.size() == exportedFunctions.size(),
|
solAssert(
|
||||||
|
exportedFunctionList.size() == exportedFunctions.size(),
|
||||||
"Hash collision at Function Definition Hash calculation"
|
"Hash collision at Function Definition Hash calculation"
|
||||||
);
|
);
|
||||||
|
|
||||||
@ -1127,7 +1128,7 @@ void IndexAccess::checkTypeRequirements(TypePointers const*)
|
|||||||
m_index->expectType(IntegerType(256));
|
m_index->expectType(IntegerType(256));
|
||||||
|
|
||||||
m_type = type.baseType();
|
m_type = type.baseType();
|
||||||
if(IntegerConstantType const* integerType = dynamic_cast<IntegerConstantType const*>(m_index->type().get()))
|
if (auto integerType = dynamic_cast<IntegerConstantType const*>(m_index->type().get()))
|
||||||
if (!type.isDynamicallySized() && type.length() <= integerType->literalValue(nullptr))
|
if (!type.isDynamicallySized() && type.length() <= integerType->literalValue(nullptr))
|
||||||
BOOST_THROW_EXCEPTION(createTypeError("Out of bounds access."));
|
BOOST_THROW_EXCEPTION(createTypeError("Out of bounds access."));
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user