aboutsummaryrefslogtreecommitdiffstats
path: root/libsolidity/codegen/ExpressionCompiler.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/ExpressionCompiler.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/ExpressionCompiler.cpp')
-rw-r--r--libsolidity/codegen/ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/libsolidity/codegen/ExpressionCompiler.cpp b/libsolidity/codegen/ExpressionCompiler.cpp
index 05d9ea1c..1a089d63 100644
--- a/libsolidity/codegen/ExpressionCompiler.cpp
+++ b/libsolidity/codegen/ExpressionCompiler.cpp
@@ -1226,7 +1226,7 @@ void ExpressionCompiler::appendExternalFunctionCall(
else
for (auto const& retType: _functionType.returnParameterTypes())
{
- solAssert(retType->calldataEncodedSize() > 0, "Unable to return dynamic type from external call.");
+ solAssert(!retType->isDynamicallySized(), "Unable to return dynamic type from external call.");
retSize += retType->calldataEncodedSize();
}