aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ArrayUtils.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-24 21:54:37 +0800
committerchriseth <c@ethdev.com>2015-11-24 21:54:37 +0800
commit68f1da1e3ad6ab914e8f633ac7f661b38894ca2b (patch)
tree92850d5bd017c4eb2ecdd2da61eb8978f1ac1c31 /libsolidity/codegen/ArrayUtils.cpp
parent588e4232eb55d501aea5c7bff513843815b0fd52 (diff)
downloaddexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar.gz
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar.bz2
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar.lz
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar.xz
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.tar.zst
dexon-solidity-68f1da1e3ad6ab914e8f633ac7f661b38894ca2b.zip
Fixed string inside struct allocation bug.
Diffstat (limited to 'libsolidity/codegen/ArrayUtils.cpp')
-rw-r--r--libsolidity/codegen/ArrayUtils.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ArrayUtils.cpp b/libsolidity/codegen/ArrayUtils.cpp
index ba26caa6..f1acce31 100644
--- a/libsolidity/codegen/ArrayUtils.cpp
+++ b/libsolidity/codegen/ArrayUtils.cpp
@@ -271,7 +271,7 @@ void ArrayUtils::copyArrayToStorage(ArrayType const& _targetType, ArrayType cons
void ArrayUtils::copyArrayToMemory(ArrayType const& _sourceType, bool _padToWordBoundaries) const
{
solAssert(
- _sourceType.baseType()->calldataEncodedSize() > 0,
+ !_sourceType.baseType()->isDynamicallySized(),
"Nested dynamic arrays not implemented here."
);
CompilerUtils utils(m_context);