Actually better to return zero on error.

This commit is contained in:
chriseth
2016-08-16 14:53:01 +02:00
parent 034d436933
commit d731225d02
4 changed files with 5 additions and 9 deletions
@@ -1571,8 +1571,6 @@ void ExpressionCompiler::appendExternalFunctionCall(
m_context << u256(32);
utils().fetchFreeMemoryPointer();
m_context << Instruction::SUB << Instruction::MLOAD;
m_context << Instruction::DUP1 << Instruction::ISZERO;
m_context.appendConditionalJumpTo(m_context.errorTag());
}
else if (!_functionType.returnParameterTypes().empty())
{