Fix windows build.

This commit is contained in:
chriseth 2019-02-26 19:43:24 +01:00
parent ebec54aacb
commit 9b7d793407

View File

@ -149,14 +149,14 @@ NoOutputEVMDialect::NoOutputEVMDialect(shared_ptr<EVMDialect> const& _copyFrom):
{ {
size_t parameters = fun.second.parameters.size(); size_t parameters = fun.second.parameters.size();
size_t returns = fun.second.returns.size(); size_t returns = fun.second.returns.size();
fun.second.generateCode = [=](FunctionCall const&, AbstractAssembly& _asm, std::function<void()> _visitArguments) fun.second.generateCode = [=](FunctionCall const&, AbstractAssembly& _assembly, std::function<void()> _visitArguments)
{ {
_visitArguments(); _visitArguments();
for (size_t i = 0; i < parameters; i++) for (size_t i = 0; i < parameters; i++)
_asm.appendInstruction(dev::solidity::Instruction::POP); _assembly.appendInstruction(dev::solidity::Instruction::POP);
for (size_t i = 0; i < returns; i++) for (size_t i = 0; i < returns; i++)
_asm.appendConstant(u256(0)); _assembly.appendConstant(u256(0));
}; };
} }
} }