mirror of
https://github.com/ethereum/solidity
synced 2023-10-03 13:03:40 +00:00
Actually better to return zero on error.
This commit is contained in:
@@ -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())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user