aboutsummaryrefslogtreecommitdiffstats
path: root/ExpressionCompiler.cpp
diff options
context:
space:
mode:
authorChristian <c@ethdev.com>2015-01-30 03:02:23 +0800
committerChristian <c@ethdev.com>2015-01-30 04:33:46 +0800
commit8d5ee59ee5bd14ab31a6b6c10015df3334b6b641 (patch)
tree36561aa9c2fb17df03a52486d9071b2f2743a965 /ExpressionCompiler.cpp
parent9f8c2620da10aa6dc3ab92de2b4aba7a9aa53be4 (diff)
downloaddexon-solidity-8d5ee59ee5bd14ab31a6b6c10015df3334b6b641.tar.gz
dexon-solidity-8d5ee59ee5bd14ab31a6b6c10015df3334b6b641.tar.zst
dexon-solidity-8d5ee59ee5bd14ab31a6b6c10015df3334b6b641.zip
Padding fixes.
Diffstat (limited to 'ExpressionCompiler.cpp')
-rw-r--r--ExpressionCompiler.cpp2
1 files changed, 1 insertions, 1 deletions
diff --git a/ExpressionCompiler.cpp b/ExpressionCompiler.cpp
index db71b51d..7d58ea2e 100644
--- a/ExpressionCompiler.cpp
+++ b/ExpressionCompiler.cpp
@@ -828,7 +828,7 @@ unsigned ExpressionCompiler::appendExpressionCopyToMemory(Type const& _expectedT
{
_expression.accept(*this);
appendTypeConversion(*_expression.getType(), _expectedType, true);
- unsigned const c_numBytes = _expectedType.getCalldataEncodedSize();
+ unsigned const c_numBytes = CompilerUtils::getPaddedSize(_expectedType.getCalldataEncodedSize());
if (c_numBytes == 0 || c_numBytes > 32)
BOOST_THROW_EXCEPTION(CompilerError()
<< errinfo_sourceLocation(_expression.getLocation())