aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ArrayUtils.cpp
diff options
context:
space:
mode:
authorchriseth <c@ethdev.com>2015-11-24 23:18:41 +0800
committerchriseth <c@ethdev.com>2015-11-24 23:18:41 +0800
commitaa8e9e66ed5e7dda20a7b91d7e4a65fff2264237 (patch)
treef5e2ad4578cbaf5579a0478d2929ad965b94d27b /libsolidity/codegen/ArrayUtils.cpp
parente59b9b445aead10dfd83a9e33a4f97853094de74 (diff)
parent68f1da1e3ad6ab914e8f633ac7f661b38894ca2b (diff)
downloaddexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar.gz
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar.bz2
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar.lz
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar.xz
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.tar.zst
dexon-solidity-aa8e9e66ed5e7dda20a7b91d7e4a65fff2264237.zip
Merge pull request #244 from chriseth/fix_stringAlloc
Fix for memory 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);