From b1250902088b04caccd25e24851350be36b2f819 Mon Sep 17 00:00:00 2001 From: chriseth Date: Fri, 15 Apr 2016 18:42:06 +0200 Subject: Bugfix: static arrays in constructor arguments --- libsolidity/codegen/Compiler.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'libsolidity/codegen') diff --git a/libsolidity/codegen/Compiler.cpp b/libsolidity/codegen/Compiler.cpp index 614c01ee..d4c94297 100644 --- a/libsolidity/codegen/Compiler.cpp +++ b/libsolidity/codegen/Compiler.cpp @@ -316,7 +316,7 @@ void Compiler::appendCalldataUnpacker(TypePointers const& _typeParameters, bool } else { - m_context << Instruction::DUP1; + m_context << Instruction::SWAP1 << Instruction::DUP2; m_context << u256(arrayType.calldataEncodedSize(true)) << Instruction::ADD; } } -- cgit