aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorLiana Husikyan <liana@ethdev.com>2015-05-19 21:44:58 +0800
committerLiana Husikyan <liana@ethdev.com>2015-06-01 19:06:12 +0800
commit16a2ffde80c45decae29e4861b7ee9ec5efa62ac (patch)
treec3d5f37c1abd1ee1805b20daab5abf4b4d672985 /ExpressionCompiler.cpp
parent0f323b1ef476078efafc8be27e03667750a6cd4f (diff)
downloaddexon-solidity-16a2ffde80c45decae29e4861b7ee9ec5efa62ac.tar.gz
dexon-solidity-16a2ffde80c45decae29e4861b7ee9ec5efa62ac.tar.zst
dexon-solidity-16a2ffde80c45decae29e4861b7ee9ec5efa62ac.zip
style fixes
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp3
1 files changed, 2 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 063af7ce..c8aece85 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -1104,8 +1104,9 @@ void ExpressionCompiler::appendExternalFunctionCall(
else
m_context << eth::Instruction::CALL;
+ //Propagate error condition (if CALL pushes 0 on stack).
m_context << eth::Instruction::ISZERO;
- auto tag = m_context.appendConditionalJumpTo(m_context.errorTag());// if CALL leaves 0.
+ auto tag = m_context.appendConditionalJumpTo(m_context.errorTag());
if (_functionType.valueSet())
m_context << eth::Instruction::POP;