diff options
author | chriseth <chris@ethereum.org> | 2018-12-19 06:50:26 +0800 |
---|---|---|
committer | chriseth <chris@ethereum.org> | 2018-12-19 06:50:39 +0800 |
commit | d8218b7eef01802626984414a0e771ab5a84f9dc (patch) | |
tree | 2911b2d810c593f63805ca36405bff4877851be0 /libsolidity | |
parent | f5e52ef3c00fe1e988ca7071f7d6b03ab349ff4d (diff) | |
download | dexon-solidity-d8218b7eef01802626984414a0e771ab5a84f9dc.tar.gz dexon-solidity-d8218b7eef01802626984414a0e771ab5a84f9dc.tar.zst dexon-solidity-d8218b7eef01802626984414a0e771ab5a84f9dc.zip |
Formatting.
Diffstat (limited to 'libsolidity')
-rw-r--r-- | libsolidity/codegen/ExpressionCompiler.cpp | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp index 46359f2b..be2709ae 100644 --- a/libsolidity/codegen/ExpressionCompiler.cpp +++ b/libsolidity/codegen/ExpressionCompiler.cpp @@ -835,10 +835,12 @@ bool ExpressionCompiler::visit(FunctionCall const& _functionCall) case FunctionType::Kind::RIPEMD160: { _functionCall.expression().accept(*this); - static const map<FunctionType::Kind, u256> contractAddresses{{FunctionType::Kind::ECRecover, 1}, - {FunctionType::Kind::SHA256, 2}, - {FunctionType::Kind::RIPEMD160, 3}}; - m_context << contractAddresses.find(function.kind())->second; + static map<FunctionType::Kind, u256> const contractAddresses{ + {FunctionType::Kind::ECRecover, 1}, + {FunctionType::Kind::SHA256, 2}, + {FunctionType::Kind::RIPEMD160, 3} + }; + m_context << contractAddresses.at(function.kind()); for (unsigned i = function.sizeOnStack(); i > 0; --i) m_context << swapInstruction(i); appendExternalFunctionCall(function, arguments); |