diff options
author | chriseth <c@ethdev.com> | 2015-06-16 17:28:35 +0800 |
---|---|---|
committer | chriseth <c@ethdev.com> | 2015-06-16 17:28:35 +0800 |
commit | a5664d053589bb512c1b9acba7feb6b1c6db155f (patch) | |
tree | 8e1f943b3ce84c02b1b60e203fb7e97ad58c2ba6 /ExpressionCompiler.cpp | |
parent | 8b402b5879b3f6851d8ca59eed0ac55fc08dd422 (diff) | |
download | dexon-solidity-a5664d053589bb512c1b9acba7feb6b1c6db155f.tar.gz dexon-solidity-a5664d053589bb512c1b9acba7feb6b1c6db155f.tar.zst dexon-solidity-a5664d053589bb512c1b9acba7feb6b1c6db155f.zip |
Style.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r-- | ExpressionCompiler.cpp | 20 |
1 files changed, 14 insertions, 6 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp index d5ffd35b..12274c7a 100644 --- a/ExpressionCompiler.cpp +++ b/ExpressionCompiler.cpp @@ -436,8 +436,10 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) _functionCall.getExpression().accept(*this); m_context << u256(0); // do not send gas (there still is the stipend) arguments.front()->accept(*this); - utils().convertType(*arguments.front()->getType(), - *function.getParameterTypes().front(), true); + utils().convertType( + *arguments.front()->getType(), + *function.getParameterTypes().front(), true + ); appendExternalFunctionCall( FunctionType( TypePointers{}, @@ -612,13 +614,19 @@ void ExpressionCompiler::endVisit(MemberAccess const& _memberAccess) case Type::Category::Integer: if (member == "balance") { - utils().convertType(*_memberAccess.getExpression().getType(), - IntegerType(0, IntegerType::Modifier::Address), true); + utils().convertType( + *_memberAccess.getExpression().getType(), + IntegerType(0, IntegerType::Modifier::Address), + true + ); m_context << eth::Instruction::BALANCE; } else if ((set<string>{"send", "call", "callcode"}).count(member)) - utils().convertType(*_memberAccess.getExpression().getType(), - IntegerType(0, IntegerType::Modifier::Address), true); + utils().convertType( + *_memberAccess.getExpression().getType(), + IntegerType(0, IntegerType::Modifier::Address), + true + ); else BOOST_THROW_EXCEPTION(InternalCompilerError() << errinfo_comment("Invalid member access to integer.")); break; |