aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorLianaHus <liana@ethdev.com>2015-09-10 16:17:17 +0800
committerLianaHus <liana@ethdev.com>2015-09-15 17:40:20 +0800
commitdd3b0664c667896c983579f18559e1e45db550b1 (patch)
tree48e8e3c1332b565cda86d82fac8215a3b68ae0f6
parente17938a2a9f1e19a179e1d260d1d7f83668827f5 (diff)
downloaddexon-solidity-dd3b0664c667896c983579f18559e1e45db550b1.tar.gz
dexon-solidity-dd3b0664c667896c983579f18559e1e45db550b1.tar.zst
dexon-solidity-dd3b0664c667896c983579f18559e1e45db550b1.zip
style fixes
-rw-r--r--libsolidity/AST.cpp5
1 files changed, 3 insertions, 2 deletions
diff --git a/libsolidity/AST.cpp b/libsolidity/AST.cpp
index 7480ef30..daa84016 100644
--- a/libsolidity/AST.cpp
+++ b/libsolidity/AST.cpp
@@ -119,7 +119,8 @@ map<FixedHash<4>, FunctionTypePointer> ContractDefinition::interfaceFunctions()
for (auto const& it: exportedFunctionList)
exportedFunctions.insert(it);
- solAssert(exportedFunctionList.size() == exportedFunctions.size(),
+ solAssert(
+ exportedFunctionList.size() == exportedFunctions.size(),
"Hash collision at Function Definition Hash calculation"
);
@@ -1127,7 +1128,7 @@ void IndexAccess::checkTypeRequirements(TypePointers const*)
m_index->expectType(IntegerType(256));
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))
BOOST_THROW_EXCEPTION(createTypeError("Out of bounds access."));