Actually better to return zero on error.

This commit is contained in:
chriseth committed 2016-08-16 14:53:01 +02:00
1 parent 034d436933
commit d731225d02
4 files changed
+5 -9

No files matched your search

@@ -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())
{