aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp7
1 files changed, 4 insertions, 3 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index 2e513b7f..a9f0ba3e 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -1102,9 +1102,10 @@ void ExpressionCompiler::appendExternalFunctionCall(
)
m_context << eth::Instruction::CALLCODE;
else
- m_context << eth::Instruction::CALL;
- auto tag = m_context.appendConditionalJump();
- m_context << eth::Instruction::STOP << tag; // STOP if CALL leaves 0.
+ {
+ m_context << eth::Instruction::CALL << eth::Instruction::ISZERO;
+ auto tag = m_context.appendConditionalJumpTo(m_context.errorTag());// if CALL leaves 0.
+ }
if (_functionType.valueSet())
m_context << eth::Instruction::POP;
if (_functionType.gasSet())