aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2016-04-16 00:42:06 +0800
committerchriseth <c@ethdev.com>2016-04-16 00:42:44 +0800
commitb1250902088b04caccd25e24851350be36b2f819 (patch)
tree1014242b5135b24cb87d2d6c1b006159e7437bca /libsolidity
parentc126ec84a386da2d4412d5d5993a773cb144573e (diff)
downloaddexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar.gz
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar.bz2
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar.lz
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar.xz
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.tar.zst
dexon-solidity-b1250902088b04caccd25e24851350be36b2f819.zip
Bugfix: static arrays in constructor arguments
Diffstat (limited to 'libsolidity')
-rw-r--r--libsolidity/codegen/Compiler.cpp2
1 files changed, 1 insertions, 1 deletions
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;
}
}